Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
20 | public function show($id) |
||
21 | { |
||
22 | $data['app_category'] = LarrockCategory::getConfig(); |
||
23 | $cache_key = sha1('AdminMethodsShowCategory'.$id.$this->config->getModelName()); |
||
24 | $data['category'] = Cache::rememberForever($cache_key, function () use ($id) { |
||
25 | return LarrockCategory::getModel()->whereId($id)->with(['getChild', 'getParent'])->firstOrFail(); |
||
26 | }); |
||
27 | $cache_key = sha1('AdminMethodsShowData'.$id.$this->config->getModelName()); |
||
28 | $data['data'] = Cache::rememberForever($cache_key, function () use ($id) { |
||
29 | return $this->config->getModel()->whereHas('getCategory', function ($q) use ($id) { |
||
30 | $q->where('category.id', '=', $id); |
||
31 | })->get(); |
||
32 | }); |
||
33 | |||
34 | return view('larrock::admin.admin-builder.categories', $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