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

phpmyfaq/inc/PMF/Instance.php 1 location

@@ 216-227 (lines=12) @@
213
     *
214
     * @return bool
215
     */
216
    public function updateInstance($id, Array $data)
217
    {
218
        $update = sprintf(
219
            "UPDATE %sfaqinstances SET instance = '%s', comment = '%s' WHERE id = %d",
220
            PMF_Db::getTablePrefix(),
221
            $data['instance'],
222
            $data['comment'],
223
            (int) $id
224
        );
225
226
        return $this->config->getDb()->query($update);
227
    }
228
229
    /**
230
     * Deletes an instance.

phpmyfaq/inc/PMF/Faq.php 1 location

@@ 3250-3261 (lines=12) @@
3247
     *
3248
     * @return bool
3249
     */
3250
    public function updateQuestionAnswer($openQuestionId, $faqId, $categoryId)
3251
    {
3252
        $query = sprintf(
3253
            'UPDATE %sfaqquestions SET answer_id = %d, category_id= %d WHERE id= %d',
3254
            PMF_Db::getTablePrefix(),
3255
            $faqId,
3256
            $categoryId,
3257
            $openQuestionId
3258
        );
3259
3260
        return $this->_config->getDb()->query($query);
3261
    }
3262
3263
    /**
3264
     * Returns a part of a query to check permissions.