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

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

src/EquatableVector.php 1 location

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