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

routes/frontpage.php 2 locations

@@ 86-95 (lines=10) @@
83
84
    foreach ($data as $grouping) {
85
        if ($grouping['grouping_level'] == 1) {
86
            if ($currentGrouping != null) {
87
                array_unshift($currentData,
88
                        array(
89
                            'caption' => $currentGrouping['display_name']
90
                        ));
91
                $return[] = $currentData;
92
                if ($match) {
93
                    $parentGrouping = $currentGrouping;
94
                }
95
            }
96
            $currentData = array();
97
            $currentGrouping = $grouping;
98
            $match = false;
@@ 113-122 (lines=10) @@
110
            $match = $match || $localMatch;
111
        }
112
    }
113
    if ($currentGrouping != null) {
114
        array_unshift($currentData,
115
                array(
116
                    'caption' => $currentGrouping['display_name']
117
                ));
118
        $return[] = $currentData;
119
        if ($match) {
120
            $parentGrouping = $currentGrouping;
121
        }
122
    }
123
124
    return $return;
125
}