src/classes/jblond/Autoloader.php
Avoid unused private methods such as 'autoload'. Open
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 */
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}