Conditions | 4 |
Paths | 8 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function items() |
||
13 | { |
||
14 | $ret = []; |
||
15 | |||
16 | foreach (Dashboard::create()->addCondition('user_id', Auth::id())->setOrder('position') as $dashboard) { |
||
17 | $ret[$dashboard['name']] = [ |
||
18 | 'access' => true, |
||
19 | 'weight' => $dashboard['position'], |
||
20 | 'action' => ModuleView::moduleLink('dashboard', 'body', ['dashboard' => $dashboard->id]) |
||
21 | ]; |
||
22 | } |
||
23 | |||
24 | return $ret? [ |
||
25 | __('DASHBOARD') => count($ret) > 1? [ |
||
26 | 'item' => ['icon' => 'tachometer alternate'], |
||
27 | 'access' => true, |
||
28 | 'group' => $ret, |
||
29 | 'weight' => -10000 |
||
30 | ]: array_merge(reset($ret), ['weight' => -10000]), |
||
31 | ]: []; |
||
32 | } |
||
33 | } |
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