Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait HasValuePresenter |
||
10 | { |
||
11 | /** |
||
12 | * Check if a model has field's presenter. |
||
13 | * |
||
14 | * @param Model $model |
||
15 | * @param string $field |
||
16 | * |
||
17 | * @return null|callable |
||
18 | */ |
||
19 | public function hasPresenter(Model $model, string $field): ?callable |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param callable $presenter |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function callPresenter(callable $presenter) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $fieldName |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function presenterMethod(string $fieldName): string |
||
47 |
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