Code Duplication    Length = 10-10 lines in 2 locations

src/Gmagick/Image.php 1 location

@@ 67-76 (lines=10) @@
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function setColorSpace($colorspace)
68
    {
69
        if (!isset(static::$colorspaceMapping[$colorspace])) {
70
            throw new RuntimeException('Only RGB, grayscale and CMYK colorspace are currently supported');
71
        }
72
73
        $this->gmagick->setimagecolorspace(static::$colorspaceMapping[$colorspace]);
74
75
        return $this;
76
    }
77
78
    /**
79
     * {@inheritdoc}

src/Imagick/Image.php 1 location

@@ 67-76 (lines=10) @@
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function setColorSpace($colorspace)
68
    {
69
        if (!isset(static::$colorspaceMapping[$colorspace])) {
70
            throw new RuntimeException('Only RGB, grayscale and CMYK colorspace are currently supported');
71
        }
72
73
        $this->imagick->setImageColorspace(static::$colorspaceMapping[$colorspace]);
74
75
        return $this;
76
    }
77
78
    /**
79
     * {@inheritdoc}