| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3.0067 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 13 | protected function routes() |
|
| 52 | { |
||
| 53 | 13 | if ($this->app->routesAreCached()) { |
|
| 54 | return; |
||
| 55 | } |
||
| 56 | |||
| 57 | 13 | Route::middleware(['nova']) |
|
| 58 | 13 | ->prefix('nova-vendor/nova-chunked') |
|
| 59 | 13 | ->group(function () { |
|
| 60 | 13 | if (config('nova-chunked.use_package_routes')) { |
|
| 61 | 13 | Route::post( |
|
| 62 | 13 | '/video-upload/{resource}/{resourceId}/{field}', |
|
| 63 | 13 | [ \NovaChunkedVideo\Http\Controllers\VideoController::class, 'store' ] |
|
| 64 | 13 | )->name('nova.chunked-video.upload'); |
|
| 65 | } |
||
| 69 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.