| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function routes() |
||
| 25 | { |
||
| 26 | if ($this->app->routesAreCached()) { |
||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | Nova::router( |
||
| 31 | ['nova', Authenticate::class, Authorize::class], |
||
| 32 | 'iprosoftware-api' |
||
| 33 | ) |
||
| 34 | ->group(__DIR__.'/../routes/inertia.php'); |
||
| 35 | |||
| 36 | Route::middleware(['nova', Authorize::class]) |
||
| 37 | ->prefix('nova-vendor/iprosoftware-api') |
||
| 38 | ->group(__DIR__.'/../routes/api.php'); |
||
| 39 | } |
||
| 51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.