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 = 11-11 lines in 2 locations

src/Uri.php 2 locations

@@ 226-236 (lines=11) @@
223
    /**
224
     * {@inheritdoc}
225
     */
226
    public function withQuery($query)
227
    {
228
        if (!is_string($query)) {
229
            throw new \InvalidArgumentException("Invalid query: {$query}");
230
        }
231
232
        $instance = clone $this;
233
        $instance->query = ltrim($query, '?');
234
235
        return $instance;
236
    }
237
238
    /**
239
     * {@inheritdoc}
@@ 241-251 (lines=11) @@
238
    /**
239
     * {@inheritdoc}
240
     */
241
    public function withFragment($fragment)
242
    {
243
        if (!is_string($fragment)) {
244
            throw new \InvalidArgumentException("Invalid fragment: {$fragment}");
245
        }
246
247
        $instance = clone $this;
248
        $instance->fragment = ltrim($fragment, '#');
249
250
        return $instance;
251
    }
252
253
    /**
254
     * {@inheritdoc}