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

src/Str.php 1 location

@@ 92-104 (lines=13) @@
89
     *
90
     * @return int
91
     */
92
    public function position(string $needle, int $offset = 0): int
93
    {
94
        $position = mb_strpos($this->value, $needle, $offset);
95
96
        if ($position === false) {
97
            throw new SubstringException(sprintf(
98
                'Substring "%s" not found',
99
                $needle
100
            ));
101
        }
102
103
        return (int) $position;
104
    }
105
106
    /**
107
     * Replace all occurences of the search string with the replacement one

src/StringPrimitive.php 1 location

@@ 102-114 (lines=13) @@
99
     *
100
     * @return int
101
     */
102
    public function pos(string $needle, int $offset = 0): int
103
    {
104
        $position = mb_strpos($this->value, $needle, $offset);
105
106
        if ($position === false) {
107
            throw new SubstringException(sprintf(
108
                'Substring "%s" not found',
109
                $needle
110
            ));
111
        }
112
113
        return (int) $position;
114
    }
115
116
    /**
117
     * Replace all occurences of the search string with the replacement one