Code Duplication    Length = 11-11 lines in 2 locations

ImageWrapper.php 2 locations

@@ 128-138 (lines=11) @@
125
     * @param array $start
126
     * @return self
127
     */
128
    public function crop($width, $height, array $start = [0, 0])
129
    {
130
        \Yii::trace('crop file', __METHOD__);
131
132
        $this->mark(__METHOD__, func_get_args());
133
        $this->save(function () use ($width, $height, $start) {
134
            return Image::crop($this->File->getAbsolutePath(), $width, $height, $start);
135
        });
136
137
        return $this;
138
    }
139
140
    /**
141
     * @param integer $width
@@ 182-192 (lines=11) @@
179
     * @param array $fontOptions
180
     * @return self
181
     */
182
    public function text($text, $fontFile, array $start = [0, 0], array $fontOptions = [])
183
    {
184
        \Yii::trace('text file', __METHOD__);
185
186
        $this->mark(__METHOD__, func_get_args());
187
        $this->save(function () use ($text, $fontFile, $start, $fontOptions) {
188
            return Image::text($this->File->getAbsolutePath(), $text, $fontFile, $start, $fontOptions);
189
        });
190
191
        return $this;
192
    }
193
194
    /**
195
     * @param int $margin