| Conditions | 4 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 36 | public function decorate( |
|
| 17 | &$value, FieldMetadata $field, ?string $group = null |
||
| 18 | ): bool { |
||
| 19 | 36 | $asserts = $field->annotations->findAllBy(Constraint::class); |
|
| 20 | |||
| 21 | 36 | foreach ($asserts as $a) { |
|
| 22 | 12 | $refl = new \ReflectionClass($a); |
|
| 23 | 12 | $basename = $refl->getShortName(); |
|
| 24 | |||
| 25 | 12 | $result = true; |
|
| 26 | 12 | if ($decorator = $this->getDecorator($basename)) { |
|
| 27 | 9 | $result = $decorator->decorate($value, $field, $a, $group); |
|
| 28 | } |
||
| 29 | |||
| 30 | 12 | if (!$result) { |
|
| 31 | 9 | break; |
|
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | 36 | return true; |
|
| 36 | } |
||
| 50 |
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