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

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

src/EquatableVector.php 1 location

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