rtckit/php-sip

View on GitHub
src/Header/ContactHeader.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Method parse has 155 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

    public static function parse(array $hbody): ContactHeader
    {
        $ret = new static;

        $input = $hbody;
Severity: Major
Found in src/Header/ContactHeader.php - About 6 hrs to fix

    Method render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Invalid

        public function render(string $hname): string
        {
            if ($this->wildcard) {
                return "{$hname}: *\r\n";
            }
    Severity: Minor
    Found in src/Header/ContactHeader.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status