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

@@ 94-108 (lines=15) @@
91
     *
92
     * @throws InvalidManipulation
93
     */
94
    public function crop(string $cropMethod, int $width, int $height)
95
    {
96
        if (! $this->validateManipulation($cropMethod, 'crop')) {
97
            throw InvalidManipulation::invalidParameter(
98
                'cropmethod',
99
                $cropMethod,
100
                $this->getValidManipulationOptions('crop')
101
            );
102
        }
103
104
        $this->width($width);
105
        $this->height($height);
106
107
        return $this->addManipulation('crop', $cropMethod);
108
    }
109
110
    /**
111
     * @param int $width
@@ 190-204 (lines=15) @@
187
     *
188
     * @throws InvalidManipulation
189
     */
190
    public function fit(string $fitMethod, int $width, int $height)
191
    {
192
        if (! $this->validateManipulation($fitMethod, 'fit')) {
193
            throw InvalidManipulation::invalidParameter(
194
                'fit',
195
                $fitMethod,
196
                $this->getValidManipulationOptions('fit')
197
            );
198
        }
199
200
        $this->width($width);
201
        $this->height($height);
202
203
        return $this->addManipulation('fit', $fitMethod);
204
    }
205
206
    /**
207
     * @param int $ratio A value between 1 and 8