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

src/QueryStatement.php 2 locations

@@ 512-521 (lines=10) @@
509
     * @param $string
510
     * @return string
511
     */
512
    protected function escapeLike($string)
513
    {
514
        $escapedString = addcslashes($string, '\'\\');
515
        $replace = array(
516
            '\\\\%' => '\\%',
517
            '\\\\_' => '\\_',
518
        );
519
        $escapedString = str_replace(array_keys($replace), array_values($replace), $escapedString);
520
        return "'" . $escapedString . "'";
521
    }
522
523
    /**
524
     * Escapes string, but not escapes backslashes ('\') in front of '*' and '?'.
@@ 529-538 (lines=10) @@
526
     * @param $string
527
     * @return string
528
     */
529
    protected function escapeContains($string)
530
    {
531
        $escapedString = addcslashes($string, '"\'\\');
532
        $replace = array(
533
            '\\\\*' => '\*',
534
            '\\\\?' => '\?',
535
        );
536
        $escapedString = str_replace(array_keys($replace), array_values($replace), $escapedString);
537
        return "'" . $escapedString . "'";
538
    }
539
}
540