| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4.074 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 10 | public function propertyViolationExists(string $property, string $violationClass) |
|
| 37 | { |
||
| 38 | 10 | if (array_key_exists($property, $this->violations)) { |
|
| 39 | 10 | foreach ($this->violations[$property] as $violation) { |
|
| 40 | 10 | if ($violation instanceof $violationClass) { |
|
| 41 | 10 | return true; |
|
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | return false; |
||
| 47 | } |
||
| 54 |