| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function dashboard() |
||
| 11 | { |
||
| 12 | $view = null; |
||
| 13 | $dashboard = \App\Services\MyDashboard::class; |
||
| 14 | if (class_exists($dashboard)) { |
||
| 15 | if (method_exists($dashboard, 'view')) { |
||
| 16 | $my_dashboard = new $dashboard; |
||
| 17 | $view = $my_dashboard->view(); |
||
| 18 | } else { |
||
| 19 | throw new Exception('view method is not found', 1); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | return $view ?? view('adminetic::admin.dashboard.index'); |
||
| 24 | } |
||
| 26 |
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