Code Duplication    Length = 9-9 lines in 2 locations

src/Gmagick/Image.php 1 location

@@ 78-86 (lines=9) @@
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function getFormat()
79
    {
80
        $format = $this->gmagick->getimageformat();
81
        if (!in_array($format, static::$supportedFormats)) {
82
            throw new RuntimeException('Unsupported image format');
83
        }
84
85
        return $format;
86
    }
87
88
    /**
89
     * {@inheritdoc}

src/Imagick/Image.php 1 location

@@ 78-86 (lines=9) @@
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function getFormat()
79
    {
80
        $format = $this->imagick->getImageFormat();
81
        if (!in_array($format, static::$supportedFormats)) {
82
            throw new RuntimeException('Unsupported image format');
83
        }
84
85
        return $format;
86
    }
87
88
    /**
89
     * {@inheritdoc}