Code Duplication    Length = 9-9 lines in 2 locations

src/Gmagick/Image.php 1 location

@@ 71-79 (lines=9) @@
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function getFormat()
72
    {
73
        $format = $this->gmagick->getimageformat();
74
        if (!in_array($format, static::$supportedFormats)) {
75
            throw new RuntimeException('Unsupported image format');
76
        }
77
78
        return $format;
79
    }
80
81
    /**
82
     * {@inheritdoc}

src/Imagick/Image.php 1 location

@@ 71-79 (lines=9) @@
68
    /**
69
     * {@inheritdoc}
70
     */
71
    public function getFormat()
72
    {
73
        $format = $this->imagick->getImageFormat();
74
        if (!in_array($format, static::$supportedFormats)) {
75
            throw new RuntimeException('Unsupported image format');
76
        }
77
78
        return $format;
79
    }
80
81
    /**
82
     * {@inheritdoc}