Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
12 | { |
||
13 | public function boot() |
||
14 | { |
||
15 | $this->app->booted(function () { |
||
16 | $this->routes(); |
||
17 | }); |
||
18 | |||
19 | Nova::serving(function (ServingNova $event) { |
||
|
|||
20 | // |
||
21 | }); |
||
22 | } |
||
23 | |||
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 | } |
||
40 | |||
41 | /** |
||
42 | * Register any application services. |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function register() |
||
48 | // |
||
49 | } |
||
50 | } |
||
51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.