Conditions | 2 |
Paths | 2 |
Total Lines | 29 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
24 | public function mapToObject($systeModel, $listSchema, array $context = []) |
||
25 | { |
||
26 | $listSchema->bulkActions = [ |
||
27 | [ |
||
28 | 'name' => 'Export CSV', |
||
29 | 'action' => 'exportCsv' |
||
30 | ], [ |
||
31 | 'name' => 'Export PDF', |
||
32 | 'action' => 'exportPdf' |
||
33 | ], [ |
||
34 | 'name' => 'Delete', |
||
35 | 'action' => 'bulkDelete' |
||
36 | ] |
||
37 | ]; |
||
38 | |||
39 | //if the system model uses elastic then we can show custom filters |
||
40 | /* if ($systeModel->useElastic()) { |
||
41 | $this->elastic = DI::getDefault()->get('elastic'); |
||
42 | $listSchema->customFilterFields = $this->getSchema($systeModel->slug); |
||
43 | } |
||
44 | */ |
||
45 | /** |
||
46 | * get the schema. |
||
47 | * |
||
48 | * @todo in PHP 7.3 change to use exceptions |
||
49 | */ |
||
50 | $listSchema->tableFields = !empty($systeModel->browse_fields) ? json_decode($systeModel->browse_fields) : null; |
||
51 | |||
52 | return $listSchema; |
||
53 | } |
||
55 |
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