| Conditions | 3 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 2 | public function boot() |
|
| 21 | { |
||
| 22 | 2 | Nova::script('nova-laravel-filemanager-tool', __DIR__.'/../dist/js/tool.js'); |
|
| 23 | 2 | Nova::style('nova-laravel-filemanager-tool', __DIR__.'/../dist/css/tool.css'); |
|
| 24 | |||
| 25 | 2 | Nova::provideToScript([ |
|
| 26 | 2 | 'novaLaravelFileManager' => [ |
|
| 27 | 2 | 'url' => Url::addOrUpdateArgs($this->lfmUrl, 'type', '_TYPE_'), |
|
| 28 | 2 | 'types' => array_values(array_filter([ |
|
| 29 | 2 | $this->displayImages?'Images':null, |
|
| 30 | 2 | $this->displayFiles?'Files':null, |
|
| 31 | 2 | ])), |
|
| 53 |