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

src/ImmutableEquatableMap.php 1 location

@@ 106-121 (lines=16) @@
103
        throw OutOfRangeException::valueOutOfRange($value);
104
    }
105
106
    public function searchAll(Equatable $value): array
107
    {
108
        $foundKeys = [];
109
110
        foreach ($this->items as $index => $item) {
111
            if ($item->equals($value)) {
112
                $foundKeys[] = $index;
113
            }
114
        }
115
116
        if (!$foundKeys) {
117
            throw OutOfRangeException::valueOutOfRange($value);
118
        }
119
120
        return $foundKeys;
121
    }
122
123
    public function contains(Equatable $value): bool
124
    {

src/ImmutableEquatableVector.php 1 location

@@ 102-117 (lines=16) @@
99
        throw OutOfRangeException::valueOutOfRange($value);
100
    }
101
102
    public function searchAll(Equatable $value): array
103
    {
104
        $foundIndexes = [];
105
106
        foreach ($this->items as $index => $item) {
107
            if ($item->equals($value)) {
108
                $foundIndexes[] = $index;
109
            }
110
        }
111
112
        if (!$foundIndexes) {
113
            throw OutOfRangeException::valueOutOfRange($value);
114
        }
115
116
        return $foundIndexes;
117
    }
118
119
    public function contains(Equatable $value): bool
120
    {