src/URI.php
Method parse
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public static function parse(string $text): URI
{
$pos = strpos($text, ':');
if ($pos === false) {
Method render
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function render(): string
{
if (!isset($this->scheme)) {
throw new InvalidURIException('Cannot render URI without scheme', Response::INTERNAL_SERVER_ERROR);
}
File URI.php
has 252 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
<?php
/**
* RTCKit\SIP\URI Class
*/
declare(strict_types = 1);
Method isEquivalent
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function isEquivalent(URI $uri): bool
{
if (!isset($this->scheme, $this->host, $uri->scheme, $uri->host)) {
throw new InvalidURIException('Cannot compare invalid URIs', Response::INTERNAL_SERVER_ERROR);
}
Avoid too many return
statements within this method. Wontfix
Wontfix
return true;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;
Avoid too many return
statements within this method. Wontfix
Wontfix
return false;