Code Duplication    Length = 3-3 lines in 2 locations

src/Image.php 2 locations

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