bakaphp /
phalcon-api
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Gewaer\Providers; |
||
| 6 | |||
| 7 | use Canvas\Providers\RouterProvider as CanvasRouterProvider; |
||
| 8 | use function Canvas\Core\appPath; |
||
| 9 | use Phalcon\Di; |
||
| 10 | |||
| 11 | class RouterProvider extends CanvasRouterProvider |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Returns the array for all the routes on this system. |
||
| 15 | * |
||
| 16 | * @return array |
||
| 17 | 76 | */ |
|
| 18 | protected function getRoutes(): array |
||
| 19 | 76 | { |
|
| 20 | 76 | $path = appPath('api/routes'); |
|
| 21 | |||
| 22 | //app routes |
||
| 23 | $routes = [ |
||
| 24 | 76 | 'canvas' => Di::getDefault()->getConfig()->application->core->path . '/routes/api.php', |
|
|
1 ignored issue
–
show
|
|||
| 25 | 76 | 'api' => $path . '/api.php', |
|
| 26 | ]; |
||
| 27 | |||
| 28 | 76 | return $routes; |
|
| 29 | } |
||
| 30 | } |
||
| 31 |
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.