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

src/StringPrimitive.php 1 location

@@ 367-379 (lines=13) @@
364
     *
365
     * @return TypedCollectionInterface
366
     */
367
    public function pregSplit(string $regex, int $limit = -1, int $flags = self::PREG_NO_FLAGS): TypedCollectionInterface
368
    {
369
        $strings = preg_split($regex, $this->value, $limit, $flags);
370
371
        foreach ($strings as &$string) {
372
            $string = new self($string);
373
        }
374
375
        return new TypedCollection(
376
            self::class,
377
            $strings
378
        );
379
    }
380
381
    /**
382
     * Check if the string match the given regular expression

src/Str.php 1 location

@@ 335-345 (lines=11) @@
332
     *
333
     * @return StreamInterface<self>
334
     */
335
    public function pregSplit(string $regex, int $limit = -1): StreamInterface
336
    {
337
        $strings = preg_split($regex, $this->value, $limit);
338
        $stream = new Stream(self::class);
339
340
        foreach ($strings as $string) {
341
            $stream = $stream->add(new self($string));
342
        }
343
344
        return $stream;
345
    }
346
347
    /**
348
     * Check if the string match the given regular expression