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