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

@@ 184-195 (lines=12) @@
181
    /**
182
     * @inheritdoc
183
     */
184
    public function countItem(Equatable $value)
185
    {
186
        $count = 0;
187
188
        foreach ($this->items as $item) {
189
            if ($item->equals($value)) {
190
                $count++;
191
            }
192
        }
193
194
        return $count;
195
    }
196
}
197

src/ImmutableEquatableVector.php 1 location

@@ 200-211 (lines=12) @@
197
    /**
198
     * @inheritdoc
199
     */
200
    public function countItem(Equatable $value)
201
    {
202
        $count = 0;
203
204
        foreach ($this->items as $item) {
205
            if ($item->equals($value)) {
206
                $count++;
207
            }
208
        }
209
210
        return $count;
211
    }
212
}
213