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

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

@@ 156-173 (lines=18) @@
153
     *
154
     * @return array
155
     */
156
    public function index(Array $faq)
157
    {
158
        $params = [
159
            'index' => $this->config['index'],
160
            'type' => $this->config['type'],
161
            'id' => $faq['solution_id'],
162
            'body' => [
163
                'id' => $faq['id'],
164
                'lang' => $faq['lang'],
165
                'question' => $faq['question'],
166
                'answer' => $faq['answer'],
167
                'keywords' => $faq['keywords'],
168
                'category_id' => $faq['category_id']
169
            ]
170
        ];
171
172
        return $this->client->index($params);
173
    }
174
175
    /**
176
     * Bulk indexing of all FAQs
@@ 229-248 (lines=20) @@
226
     * @param array $faq
227
     * @return array
228
     */
229
    public function update(Array $faq)
230
    {
231
        $params = [
232
            'index' => $this->config['index'],
233
            'type' => $this->config['type'],
234
            'id' => $faq['solution_id'],
235
            'body' => [
236
                'doc' => [
237
                    'id' => $faq['id'],
238
                    'lang' => $faq['lang'],
239
                    'question' => $faq['question'],
240
                    'answer' => $faq['answer'],
241
                    'keywords' => $faq['keywords'],
242
                    'category_id' => $faq['category_id']
243
                ]
244
            ]
245
        ];
246
247
        return $this->client->update($params);
248
    }
249
250
    /**
251
     * Deletes a FAQ document