| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 7 | public function validate($object, Constraint $constraint) |
|
| 23 | { |
||
| 24 | 7 | if (!$this->isValid($object)) { |
|
| 25 | 5 | $this->context->buildViolation($constraint->message) |
|
| 26 | 5 | ->atPath('sliderImage') |
|
| 27 | 5 | ->setParameter('{{width}}', self::MIN_HEIGHT) |
|
| 28 | 5 | ->setParameter('{{height}}', self::MIN_WIDTH) |
|
| 29 | 5 | ->addViolation() |
|
| 30 | ; |
||
| 31 | } |
||
| 32 | 7 | } |
|
| 33 | |||
| 43 |