| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.003 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 2 | protected function routes(): void |
|
| 37 | { |
||
| 38 | 2 | if ($this->app->routesAreCached()) { |
|
| 39 | return; |
||
| 40 | } |
||
| 41 | |||
| 42 | // Load admin dashboard routes |
||
| 43 | 2 | Nova::router( |
|
| 44 | 2 | ['nova', Authenticate::class, Authorize::class], |
|
| 45 | 2 | 'nova-naviga-ad-preview' |
|
| 46 | 2 | ) |
|
| 47 | 2 | ->group(__DIR__.'/../routes/inertia.php'); |
|
| 48 | |||
| 49 | // Load api routes |
||
| 50 | 2 | Route::middleware(['nova', Authorize::class]) |
|
| 51 | 2 | ->prefix('nova-vendor/nova-naviga-ad-preview') |
|
| 52 | 2 | ->group(__DIR__.'/../routes/api.php'); |
|
| 53 | } |
||
| 55 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.