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

src/ImmutableEquatableMap.php 1 location

@@ 162-173 (lines=12) @@
159
        return count($this->items);
160
    }
161
162
    public function countItem(Equatable $value): int
163
    {
164
        $count = 0;
165
166
        foreach ($this->items as $item) {
167
            if ($item->equals($value)) {
168
                $count++;
169
            }
170
        }
171
172
        return $count;
173
    }
174
175
    public function getIterator(): Traversable
176
    {

src/ImmutableEquatableVector.php 1 location

@@ 158-169 (lines=12) @@
155
        return count($this->items);
156
    }
157
158
    public function countItem(Equatable $value): int
159
    {
160
        $count = 0;
161
162
        foreach ($this->items as $item) {
163
            if ($item->equals($value)) {
164
                $count++;
165
            }
166
        }
167
168
        return $count;
169
    }
170
171
    public function getIterator(): Traversable
172
    {