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/Str.php 1 location

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

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