Conditions | 6 |
Paths | 12 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
47 | 1 | protected function validateValue($value, DataSetInterface $dataSet = null): Result |
|
48 | { |
||
49 | 1 | $result = new Result(); |
|
50 | |||
51 | 1 | $valid = !is_array($value) && |
|
52 | 1 | ((!$this->not && preg_match($this->pattern, $value)) |
|
53 | 1 | || ($this->not && !preg_match($this->pattern, $value))); |
|
54 | |||
55 | 1 | if (!$valid) { |
|
56 | 1 | $result->addError($this->formatMessage($this->message)); |
|
57 | } |
||
58 | |||
59 | 1 | return $result; |
|
60 | } |
||
62 |
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