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

phpmyfaq/inc/PMF/Search/Elasticsearch.php 2 locations

@@ 116-133 (lines=18) @@
113
114
        $result = $this->client->search($searchParams);
115
116
        if (0 !== $result['hits']['total']) {
117
118
            foreach ($result['hits']['hits'] as $hit) {
119
                $resultSet = new stdClass();
120
                $resultSet->id = $hit['_source']['id'];
121
                $resultSet->lang = $hit['_source']['lang'];
122
                $resultSet->question = $hit['_source']['question'];
123
                $resultSet->answer = $hit['_source']['answer'];
124
                $resultSet->keywords = $hit['_source']['keywords'];
125
                $resultSet->category_id = $hit['_source']['category_id'];
126
                $resultSet->score = $hit['_score'];
127
128
                $this->resultSet[] = $resultSet;
129
            }
130
131
        } else {
132
            $this->resultSet = [];
133
        }
134
135
        return $this->resultSet;
136
    }
@@ 177-194 (lines=18) @@
174
175
        $result = $this->client->search($searchParams);
176
177
        if (0 !== $result['hits']['total']) {
178
179
            foreach ($result['hits']['hits'] as $hit) {
180
                $resultSet = new stdClass();
181
                $resultSet->id = $hit['_source']['id'];
182
                $resultSet->lang = $hit['_source']['lang'];
183
                $resultSet->question = $hit['_source']['question'];
184
                $resultSet->answer = $hit['_source']['answer'];
185
                $resultSet->keywords = $hit['_source']['keywords'];
186
                $resultSet->category_id = $hit['_source']['category_id'];
187
                $resultSet->score = $hit['_score'];
188
189
                $this->resultSet[] = $resultSet;
190
            }
191
192
        } else {
193
            $this->resultSet = [];
194
        }
195
196
        return $this->resultSet;
197
    }