Code Duplication    Length = 3-3 lines in 2 locations

src/Image.php 2 locations

@@ 274-276 (lines=3) @@
271
        );
272
273
        foreach ($boxSizes as $boxSizeKey => $boxSize) {
274
            if (!isset($boxSize['width']) || !is_int($boxSize['width'])) {
275
                throw new InvalidArgumentException('a width in a $boxSizes value was not an int');
276
            }
277
278
            if (!isset($boxSize['height']) || !is_int($boxSize['height'])) {
279
                throw new InvalidArgumentException('a height in a $boxSizes value was not an int');
@@ 278-280 (lines=3) @@
275
                throw new InvalidArgumentException('a width in a $boxSizes value was not an int');
276
            }
277
278
            if (!isset($boxSize['height']) || !is_int($boxSize['height'])) {
279
                throw new InvalidArgumentException('a height in a $boxSizes value was not an int');
280
            }
281
282
            if ($boxSize['width'] > $maxWidth || $boxSize['width'] <= 0) {
283
                throw new InvalidArgumentException('a $boxSizes width was not between 0 and $options["maxWidth"]');