| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 15 | public function decorate(&$value, FieldMetadata $field, Constraint $configuration, ?string $group = null): bool |
|
| 12 | { |
||
| 13 | /* |
||
| 14 | * @var \Symfony\Component\Validator\Constraints\EqualTo |
||
| 15 | */ |
||
| 16 | 15 | if ($configuration->value) { |
|
| 17 | 6 | $value = $configuration->value; |
|
| 18 | 9 | } elseif ($configuration->propertyPath) { |
|
| 19 | 9 | $value = Accessor::getPropertyValue($field->object, $configuration->propertyPath); |
|
| 20 | } |
||
| 21 | |||
| 22 | 15 | return true; |
|
| 23 | } |
||
| 25 |
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