Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
18 | public function index() |
||
19 | { |
||
20 | if (isset($this->config->rows['category'])) { |
||
21 | $data['app_category'] = LarrockCategory::getConfig(); |
||
22 | $data['categories'] = LarrockCategory::getModel()->whereComponent($this->config->name)->whereLevel(1) |
||
23 | ->orderBy('position', 'DESC')->orderBy('updated_at', 'ASC')->with(['getChild', 'getParent'])->paginate(30); |
||
24 | |||
25 | return view('larrock::admin.admin-builder.categories', $data); |
||
26 | } |
||
27 | |||
28 | if (array_key_exists('position', $this->config->rows)) { |
||
29 | $data['data'] = $this->config->getModel()::orderBy('position', 'DESC')->paginate(30); |
||
30 | } else { |
||
31 | $data['data'] = $this->config->getModel()::paginate(30); |
||
32 | } |
||
33 | |||
34 | return view('larrock::admin.admin-builder.index', $data); |
||
35 | } |
||
37 |
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