PDU/Data/Part.php
Method parse
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function parse(Data $data)
{
$alphabet = $data->getPdu()->getDcs()->getTextAlphabet();
$header = NULL;
$length = $data->getPdu()->getUdl() * ($alphabet == PDU\DCS::ALPHABET_UCS2 ? 4 : 2);