We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function setupRoutes(Router $router) |
||
|
|||
42 | { |
||
43 | // by default, use the routes file provided in vendor |
||
44 | $routeFilePathInUse = __DIR__.$this->routeFilePath; |
||
45 | |||
46 | // but if there's a file with the same name in routes/backpack, use that one |
||
47 | if (file_exists(base_path().$this->routeFilePath)) { |
||
48 | $routeFilePathInUse = base_path().$this->routeFilePath; |
||
49 | } |
||
50 | |||
51 | $this->loadRoutesFrom($routeFilePathInUse); |
||
52 | } |
||
53 | |||
64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.