src/Message.php
Method parse
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
public static function parse(string $text, bool $ignoreBody = false): Message
{
$text = ltrim($text, "\r\n");
$lines = explode("\r\n", $text);
File Message.php
has 475 lines of code (exceeds 250 allowed). Consider refactoring. Invalid
Invalid
<?php
/**
* RTCKit\SIP\Message Class
*/
declare(strict_types = 1);
Method renderHeaders
has 149 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
public function renderHeaders(bool $compact): string
{
$ret = '';
if (isset($this->via)) {