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/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

src/ImmutableEquatableMap.php 1 location

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