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

src/Str.php 1 location

@@ 70-80 (lines=11) @@
67
     *
68
     * @return StreamInterface<self>
69
     */
70
    public function chunk(int $size = 1): StreamInterface
71
    {
72
        $pieces = str_split($this->value, $size);
73
        $stream = new Stream(self::class);
74
75
        foreach ($pieces as $piece) {
76
            $stream = $stream->add(new self($piece));
77
        }
78
79
        return $stream;
80
    }
81
82
    /**
83
     * Returns the position of the first occurence of the string

src/StringPrimitive.php 1 location

@@ 81-90 (lines=10) @@
78
     *
79
     * @return TypedCollectionInterface
80
     */
81
    public function chunk(int $size = 1): TypedCollectionInterface
82
    {
83
        $pieces = str_split($this->value, $size);
84
85
        foreach ($pieces as &$piece) {
86
            $piece = new self($piece);
87
        }
88
89
        return new TypedCollection(self::class, $pieces);
90
    }
91
92
    /**
93
     * Returns the position of the first occurence of the string