Code Duplication    Length = 3-3 lines in 2 locations

src/Charcoal/Image/Imagemagick/ImagemagickImage.php 2 locations

@@ 213-215 (lines=3) @@
210
        }
211
212
        if (!in_array($cmdName, $this->availableCommands())) {
213
            if (!is_string($cmdName)) {
214
                $cmdName = (is_object($cmdName) ? get_class($cmdName) : gettype($cmdName));
215
            }
216
            throw new OutOfBoundsException(sprintf(
217
                'Unsupported command "%s" provided',
218
                $cmdName
@@ 284-286 (lines=3) @@
281
                return $this->identifyCmd();
282
283
            default:
284
                if (!is_string($name)) {
285
                    $name = (is_object($name) ? get_class($name) : gettype($name));
286
                }
287
                throw new OutOfBoundsException(sprintf(
288
                    'Unsupported command "%s" provided',
289
                    $name