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

src/EquatableMap.php 1 location

@@ 97-106 (lines=10) @@
94
        return $this->items[$key];
95
    }
96
97
    public function search(Equatable $value): string
98
    {
99
        foreach ($this->items as $key => $item) {
100
            if ($item->equals($value)) {
101
                return $key;
102
            }
103
        }
104
105
        throw OutOfRangeException::valueOutOfRange($value);
106
    }
107
108
    public function searchAll(Equatable $value): array
109
    {

src/EquatableVector.php 1 location

@@ 93-102 (lines=10) @@
90
        return $this->items[$index];
91
    }
92
93
    public function search(Equatable $value): int
94
    {
95
        foreach ($this->items as $index => $item) {
96
            if ($item->equals($value)) {
97
                return $index;
98
            }
99
        }
100
101
        throw OutOfRangeException::valueOutOfRange($value);
102
    }
103
104
    public function searchAll(Equatable $value): array
105
    {