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

symphony/lib/toolkit/class.extensionmanager.php 1 location

@@ 860-868 (lines=9) @@
857
            }
858
        }
859
860
        foreach ($extensions as $i => $e) {
861
            $data[$i] = array();
862
            foreach ($e as $key => $value) {
863
                // If $select is empty, we assume every field is requested
864
                if (in_array($key, $select) || empty($select)) {
865
                    $data[$i][$key] = $value;
866
                }
867
            }
868
        }
869
870
        return $data;
871
    }

symphony/lib/toolkit/class.resourcemanager.php 1 location

@@ 248-257 (lines=10) @@
245
246
        $data = array();
247
248
        foreach ($resources as $i => $res) {
249
            $data[$i] = array();
250
251
            foreach ($res as $key => $value) {
252
                // If $select is empty, we assume every field is requested
253
                if (in_array($key, $select) || empty($select)) {
254
                    $data[$i][$key] = $value;
255
                }
256
            }
257
        }
258
259
        return $data;
260
    }