JBlond/php-router

View on GitHub
src/classes/jblond/Autoloader.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private methods such as 'autoload'.
Open

    private function autoload(string $class): void
    {
        $class = str_replace('\\', '/', $class); // revert path for old PHP on Linux
        if (file_exists('classes/' . $class . '.php')) {
            /** @noinspection PhpIncludeInspection */
Severity: Minor
Found in src/classes/jblond/Autoloader.php by phpmd

UnusedPrivateMethod

Since: 0.2

Unused Private Method detects when a private method is declared but is unused.

Example

class Something
{
    private function foo() {} // unused
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod

There are no issues that match your filters.

Category
Status