Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 157-164 (lines=8) @@
154
     *
155
     * @return integer
156
     */
157
    public function width()
158
    {
159
        if (!file_exists($this->tmp())) {
160
            return 0;
161
        }
162
        $cmd = $this->identifyCmd().' -format "%w" '.$this->tmp();
163
        return (int)trim($this->exec($cmd));
164
    }
165
166
    /**
167
     * Get the image's height, in pixels
@@ 171-178 (lines=8) @@
168
     *
169
     * @return integer
170
     */
171
    public function height()
172
    {
173
        if (!file_exists($this->tmp())) {
174
            return 0;
175
        }
176
        $cmd = $this->identifyCmd().' -format "%h" '.$this->tmp();
177
        return (int)trim($this->exec($cmd));
178
    }
179
180
    /**
181
     * @param string $channel The channel name to convert.