Showing 5 of 5 total issues

Avoid variables with short names like $di. Configured minimum length is 3.
Open

    public static function init(ContainerInterface $di) : void
Severity: Minor
Found in src/Proxy/ProxyDIFactory.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $di. Configured minimum length is 3.
Open

    public static function setDI(ContainerInterface $di) : void
Severity: Minor
Found in src/Proxy/ProxyDI.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $di. Configured minimum length is 3.
Open

    private static $di = null;
Severity: Minor
Found in src/Proxy/ProxyDI.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Line exceeds 120 characters; contains 142 characters
Open

            throw new ProxyException("The Proxy is trying to call method '$name' on service '$serviceName' but that method is not callable.");
Severity: Minor
Found in src/Proxy/ProxyDI.php by phpcodesniffer

Line exceeds 120 characters; contains 135 characters
Open

            throw new ProxyException("The Proxy is trying to reach service '$serviceName' but it is not loaded as a service in \$di.");
Severity: Minor
Found in src/Proxy/ProxyDI.php by phpcodesniffer
Severity
Category
Status
Source
Language