|
@@ 91-93 (lines=3) @@
|
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
foreach ($boxSizes as $boxSizeKey => $boxSize) { |
| 91 |
|
if (!isset($boxSize['width']) || !is_int($boxSize['width'])) { |
| 92 |
|
throw new \InvalidArgumentException('a width in a $boxSizes value was not an int'); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
| 96 |
|
throw new \InvalidArgumentException('a height in a $boxSizes value was not an int'); |
|
@@ 95-97 (lines=3) @@
|
| 92 |
|
throw new \InvalidArgumentException('a width in a $boxSizes value was not an int'); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
if (!isset($boxSize['height']) || !is_int($boxSize['height'])) { |
| 96 |
|
throw new \InvalidArgumentException('a height in a $boxSizes value was not an int'); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
if ($boxSize['width'] > $maxWidth || $boxSize['width'] <= 0) { |
| 100 |
|
throw new \InvalidArgumentException('a $boxSizes width was not between 0 and $options["maxWidth"]'); |