@@ 79-81 (lines=3) @@ | ||
76 | } |
|
77 | ||
78 | foreach ($boxSizes as $boxSizeKey => $boxSize) { |
|
79 | if (!isset($boxSize['width']) || !is_int($boxSize['width'])) { |
|
80 | throw new \InvalidArgumentException('a width in a $boxSizes value was not an int'); |
|
81 | } |
|
82 | ||
83 | if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
|
84 | throw new \InvalidArgumentException('a height in a $boxSizes value was not an int'); |
|
@@ 83-85 (lines=3) @@ | ||
80 | throw new \InvalidArgumentException('a width in a $boxSizes value was not an int'); |
|
81 | } |
|
82 | ||
83 | if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
|
84 | throw new \InvalidArgumentException('a height in a $boxSizes value was not an int'); |
|
85 | } |
|
86 | ||
87 | if ($boxSize['width'] > $maxWidth || $boxSize['width'] <= 0) { |
|
88 | throw new \InvalidArgumentException('a $boxSizes width was not between 0 and $options["maxWidth"]'); |