| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function evaluate(FaceDetectionResult $result, Face $constraint): Evaluation |
||
| 12 | { |
||
| 13 | if ($constraint->allowCoveringFace || !in_array(Accessory::MASK(), $result->getAccessories())) { |
||
| 14 | return new Evaluation(true); |
||
| 15 | } |
||
| 16 | |||
| 17 | return new Evaluation(false, $constraint->faceCoveredMessage); |
||
| 18 | } |
||
| 20 |