@@ 286-288 (lines=3) @@ | ||
283 | ); |
|
284 | ||
285 | foreach ($boxSizes as $boxSizeKey => $boxSize) { |
|
286 | if (!isset($boxSize['width']) || !is_int($boxSize['width'])) { |
|
287 | throw new InvalidArgumentException('a width in a $boxSizes value was not an int'); |
|
288 | } |
|
289 | ||
290 | if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
|
291 | throw new InvalidArgumentException('a height in a $boxSizes value was not an int'); |
|
@@ 290-292 (lines=3) @@ | ||
287 | throw new InvalidArgumentException('a width in a $boxSizes value was not an int'); |
|
288 | } |
|
289 | ||
290 | if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
|
291 | throw new InvalidArgumentException('a height in a $boxSizes value was not an int'); |
|
292 | } |
|
293 | ||
294 | if ($boxSize['width'] > $maxWidth || $boxSize['width'] <= 0) { |
|
295 | throw new InvalidArgumentException('a $boxSizes width was not between 0 and $options["maxWidth"]'); |