for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Injector\Tests\Support;
class ContextMethod
{
private function privateMethod(): bool
return true;
}
protected function protectedMethod(): bool
private static function staticMethod(): string
staticMethod()
This check looks for private methods that have been defined, but are not used inside the class.
return static::class;
public static function publicStaticMethod(): string
This check looks for private methods that have been defined, but are not used inside the class.