| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 37 | public function validate(): void |
||
| 38 | { |
||
| 39 | // foreach ($this->properties as $property) { |
||
| 40 | // if (!\in_array($property, $this->allowedProperties)) { |
||
| 41 | 102 | // throw new FieldSyntaxValidationException('Property unknow: ' . $property); |
|
| 42 | // } |
||
| 43 | 102 | // } |
|
| 44 | 102 | \array_map(function ($property): void { |
|
| 45 | if (!\in_array($property, $this->allowedProperties)) { |
||
| 46 | 102 | throw new FieldSyntaxValidationException('Property unknow: ' . $property); |
|
| 47 | } |
||
| 48 | 102 | }, \array_keys($this->properties)); |
|
| 49 | 102 | } |
|
| 51 |