Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function index() |
||
26 | { |
||
27 | $view = null; |
||
28 | $dashboard = \App\Services\MyDashboard::class; |
||
|
|||
29 | if (class_exists($dashboard)) { |
||
30 | if (method_exists($dashboard, 'view')) { |
||
31 | $my_dashboard = new $dashboard; |
||
32 | $view = $my_dashboard->view(); |
||
33 | } else { |
||
34 | throw new Exception('view method is not found', 1); |
||
35 | } |
||
36 | } |
||
37 | |||
38 | return $view ?? view('adminetic::admin.dashboard.index'); |
||
39 | } |
||
41 |
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