the-kbA-team/memory-container

View on GitHub

Showing 7 of 7 total issues

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

    public function get(string $id)
Severity: Minor
Found in src/Container.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 $id. Configured minimum length is 3.
Open

    protected function validateId(string $id): string
Severity: Minor
Found in src/Container.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 $id. Configured minimum length is 3.
Open

    public function has(string $id): bool
Severity: Minor
Found in src/Container.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 $id. Configured minimum length is 3.
Open

    public function set(string $id, $value)
Severity: Minor
Found in src/Container.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

Class implements undeclared interface \Psr\Container\NotFoundExceptionInterface
Open

class NotFoundException extends ContainerException implements NotFoundExceptionInterface
Severity: Critical
Found in src/NotFoundException.php by phan

Class implements undeclared interface \Psr\Container\ContainerExceptionInterface
Open

class ContainerException extends RuntimeException implements ContainerExceptionInterface
Severity: Critical
Found in src/ContainerException.php by phan

Class implements undeclared interface \Psr\Container\ContainerInterface (Did you mean to configure a stub with https://github.com/phan/phan/wiki/How-To-Use-Stubs#internal-stubs or to enable the extension providing the class.)
Open

class Container implements ContainerInterface
Severity: Critical
Found in src/Container.php by phan
Severity
Category
Status
Source
Language