| Conditions | 3 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 64 | public function execute($value, array $previousErrors): void |
|
| 51 | { |
||
| 52 | 64 | foreach ($this->dependsOn as $check) { |
|
| 53 | 10 | $check->execute($value, $previousErrors); |
|
| 54 | } |
||
| 55 | |||
| 56 | 64 | if (($this->predicate)($value, ...array_values($this->params)) === false) { |
|
| 57 | 39 | throw new CheckError($this->name, $value, $this->params); |
|
| 58 | } |
||
| 69 |