Conditions | 5 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function resourceByEntity($model, string $urlKey = null) |
||
29 | { |
||
30 | return app('scaffold.modules')->first(function ($module) use ($model, $urlKey) { |
||
31 | $urlEquals = $urlKey ? $module->url() === $urlKey : true; |
||
32 | |||
33 | if (\is_string($model)) { |
||
34 | return \get_class($module->model()) === $model && $urlEquals; |
||
35 | } |
||
36 | |||
37 | return \get_class($module->model()) === \get_class($model) && $urlEquals; |
||
38 | }); |
||
65 |
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