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

phpmyfaq/inc/PMF/Helper/Category.php 1 location

@@ 75-82 (lines=8) @@
72
                $level     = $this->Category->treeTab[$y]['level'];
73
                $leveldiff = $open - $level;
74
75
                if ($leveldiff > 1) {
76
                    $output .= '</li>';
77
                    for ($i = $leveldiff; $i > 1; $i--) {
78
                        $output .= sprintf("\n%s</ul>\n%s</li>\n",
79
                            str_repeat("\t", $level + $i + 1),
80
                            str_repeat("\t", $level + $i));
81
                    }
82
                }
83
84
                if ($level < $open) {
85
                    if (($level - $open) == -1) {

phpmyfaq/inc/PMF/Category.php 1 location

@@ 634-641 (lines=8) @@
631
            $level     = $this->treeTab[$y]['level'];
632
            $leveldiff = $open - $level;
633
634
            if ($leveldiff > 1) {
635
                $output .= '</li>';
636
                for ($i = $leveldiff; $i > 1; $i--) {
637
                    $output .= sprintf("\n%s</ul>\n%s</li>\n",
638
                        str_repeat("\t", $level + $i + 1),
639
                        str_repeat("\t", $level + $i));
640
                }
641
            }
642
643
            if (!isset($number[$parent])) {
644
                $number[$parent] = 0;