Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ValidPattern implements ValidationRule |
||
9 | { |
||
10 | public function __construct( |
||
14 | |||
15 | /** |
||
16 | * Check texts with specific pattern. |
||
17 | * |
||
18 | * @param string $attribute |
||
19 | * @param mixed $value |
||
20 | * @param Closure $fail |
||
21 | * @return void |
||
22 | */ |
||
23 | public function validate(string $attribute, mixed $value, Closure $fail): void |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Check if texts with specific pattern is valid |
||
33 | * |
||
34 | * @param mixed $value |
||
35 | * @return bool |
||
36 | */ |
||
37 | private function isPatternValid(mixed $value): bool |
||
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