GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 15-15 lines in 2 locations

src/Manipulations.php 2 locations

@@ 125-139 (lines=15) @@
122
     *
123
     * @throws InvalidManipulation
124
     */
125
    public function crop(string $cropMethod, int $width, int $height)
126
    {
127
        if (! $this->validateManipulation($cropMethod, 'crop')) {
128
            throw InvalidManipulation::invalidParameter(
129
                'cropmethod',
130
                $cropMethod,
131
                $this->getValidManipulationOptions('crop')
132
            );
133
        }
134
135
        $this->width($width);
136
        $this->height($height);
137
138
        return $this->addManipulation('crop', $cropMethod);
139
    }
140
141
    /**
142
     * @param int $width
@@ 221-235 (lines=15) @@
218
     *
219
     * @throws InvalidManipulation
220
     */
221
    public function fit(string $fitMethod, int $width, int $height)
222
    {
223
        if (! $this->validateManipulation($fitMethod, 'fit')) {
224
            throw InvalidManipulation::invalidParameter(
225
                'fit',
226
                $fitMethod,
227
                $this->getValidManipulationOptions('fit')
228
            );
229
        }
230
231
        $this->width($width);
232
        $this->height($height);
233
234
        return $this->addManipulation('fit', $fitMethod);
235
    }
236
237
    /**
238
     * @param int $ratio A value between 1 and 8