Total Complexity | 7 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 84.21% |
Changes | 0 |
1 | <?php |
||
13 | class AssertGenerator extends AttachableGeneratorAbstract |
||
14 | { |
||
15 | 26 | public function generateForProperty(FieldMetadata $field, FakeMock $fakemock, ?string $group = null) |
|
36 | } |
||
37 | |||
38 | 16 | protected function filterByGroup($asserts, ?string $group = null){ |
|
39 | 16 | if(is_null($group)){ |
|
40 | 16 | return $asserts; |
|
41 | } |
||
42 | |||
43 | $result = array_filter($asserts, function($a) use ($group){ |
||
44 | /** |
||
45 | * @var $a Constraint |
||
46 | */ |
||
47 | return in_array($group, $a->groups); |
||
48 | }); |
||
49 | |||
50 | return array_values($result); |
||
51 | } |
||
52 | |||
53 | 8 | protected function getGeneratorFqcn($simpleClassName) |
|
56 | } |
||
57 | } |
||
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