| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function bootWebsocketRoutes() |
||
| 33 | { |
||
| 34 | $app = $this->app; |
||
| 35 | |||
| 36 | // router only exists after lumen 5.5 |
||
| 37 | if (property_exists($app, 'router')) { |
||
| 38 | $app->router->group(['namespace' => 'SwooleTW\Http\Controllers'], function ($app) { |
||
| 39 | require __DIR__ . '/../routes/lumen_routes.php'; |
||
| 40 | }); |
||
| 41 | } else { |
||
| 42 | $app->group(['namespace' => 'App\Http\Controllers'], function ($app) { |
||
|
|
|||
| 43 | require __DIR__ . '/../routes/lumen_routes.php'; |
||
| 44 | }); |
||
| 58 |
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.