@@ 38-42 (lines=5) @@ | ||
35 | } |
|
36 | $height = $value->getImage()->getHeight(); |
|
37 | $width = $value->getImage()->getWidth(); |
|
38 | if ($height !== $this->size->getHeight()) { |
|
39 | $template = 'Tile height is %d (%d expected)'; |
|
40 | $message = sprintf($template, $height, $this->size->getHeight()); |
|
41 | throw new ValidationException($message, $path); |
|
42 | } |
|
43 | if ($width !== $this->size->getWidth()) { |
|
44 | $template = 'Tile width is %d (%d expected)'; |
|
45 | $message = sprintf($template, $width, $this->size->getWidth()); |
|
@@ 43-47 (lines=5) @@ | ||
40 | $message = sprintf($template, $height, $this->size->getHeight()); |
|
41 | throw new ValidationException($message, $path); |
|
42 | } |
|
43 | if ($width !== $this->size->getWidth()) { |
|
44 | $template = 'Tile width is %d (%d expected)'; |
|
45 | $message = sprintf($template, $width, $this->size->getWidth()); |
|
46 | throw new ValidationException($message, $path); |
|
47 | } |
|
48 | } |
|
49 | } |
|
50 |