| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function starting(Application $app) : void |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var Router $router |
||
| 28 | * @var RScanner $scanner |
||
| 29 | */ |
||
| 30 | |||
| 31 | if (defined('CWD') && is_file($rf = CWD . '/registers.php')) { |
||
| 32 | DI::set(Router::class, $router = DI::object(Router::class)); |
||
| 33 | DI::set(RScanner::class, $scanner = DI::object(RScanner::class)); |
||
| 34 | |||
| 35 | $scanner->sources(...(array) include $rf)->serving(); |
||
| 36 | |||
| 37 | $app->named($router->server()); |
||
|
|
|||
| 38 | |||
| 39 | $app->starting()->add(static function () use ($scanner) { |
||
| 40 | $scanner->analyzing(); |
||
| 41 | }); |
||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.