Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function body() |
||
21 | { |
||
22 | ActionBar::addItemButton('back')->link(url('view/system')); |
||
23 | |||
24 | $grid = $this->add([ |
||
25 | 'CRUD', |
||
26 | 'displayFields' => [ |
||
27 | 'name', |
||
28 | 'created_at', |
||
29 | 'created_by_user', |
||
30 | 'link', |
||
31 | ], |
||
32 | 'quickSearch' => [ |
||
33 | 'name', 'created_by_user', |
||
34 | ], |
||
35 | 'menu' => ActionBar::instance(), |
||
36 | ]); |
||
37 | |||
38 | $grid->setModel(File::create(['read_only' => true])); |
||
39 | |||
40 | $grid->addDecorator('name', ['Multiformat', function($row, $column) { |
||
41 | return [['Template', $this->app->getTag('a', ['href' => '#', 'class'=>'file-modal'], $row[$column])]]; |
||
42 | }]); |
||
43 | |||
44 | $grid->on('click', '.file-modal', $this->add(new FileModal())->show()); |
||
45 | } |
||
47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths