| @@ 54-58 (lines=5) @@ | ||
| 51 | $this->faceValidator->validate($grid, $facePath); |
|
| 52 | } |
|
| 53 | } |
|
| 54 | if (!empty($missingFaces)) { |
|
| 55 | $message = 'Following faces were not found: ' . |
|
| 56 | implode(', ', $missingFaces); |
|
| 57 | throw new ValidationException($message); |
|
| 58 | } |
|
| 59 | if (!empty($extraFaces)) { |
|
| 60 | $message = 'Following extra faces were found: ' . |
|
| 61 | implode(', ', $extraFaces); |
|
| @@ 59-63 (lines=5) @@ | ||
| 56 | implode(', ', $missingFaces); |
|
| 57 | throw new ValidationException($message); |
|
| 58 | } |
|
| 59 | if (!empty($extraFaces)) { |
|
| 60 | $message = 'Following extra faces were found: ' . |
|
| 61 | implode(', ', $extraFaces); |
|
| 62 | throw new ValidationException($message); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||