Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
15 | 4 | public function boot() |
|
16 | { |
||
17 | 4 | Nova::serving(function (ServingNova $event) { |
|
|
|||
18 | Nova::script('html-field', __DIR__ . '/../dist/js/field.js'); |
||
19 | Nova::style('html-field', __DIR__ . '/../dist/css/field.css'); |
||
20 | 4 | }); |
|
21 | |||
22 | 4 | if ($this->app->runningInConsole()) { |
|
23 | 4 | $this->publishes([ |
|
24 | 4 | __DIR__ . '/../resources/views' => resource_path('views/vendor/nova-html-field'), |
|
25 | 4 | ], 'views'); |
|
26 | } |
||
27 | 4 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'nova-html-field'); |
|
28 | } |
||
40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.