Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function handle() |
||
39 | { |
||
40 | $laravel = $this->getLaravel(); |
||
41 | $base_path = $laravel->basePath(); |
||
42 | $headers = ['Binding Name', 'Class', 'File Path']; |
||
43 | |||
44 | $rows = array_map(function($binding, $key) use($base_path) { |
||
45 | |||
46 | $binding = new \ReflectionFunction($binding['concrete']); |
||
47 | |||
48 | return [ |
||
49 | 'key' => $key, |
||
50 | 'name' => $binding->getClosureScopeClass()->name, |
||
51 | 'path' => str_replace($base_path, '', $binding->getFileName()), |
||
52 | ]; |
||
53 | }, $laravel->getBindings(), array_keys($laravel->getBindings())); |
||
54 | |||
55 | $this->table($headers, $rows); |
||
56 | } |
||
58 |
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