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

symphony/lib/toolkit/class.entrymanager.php 2 locations

@@ 127-135 (lines=9) @@
124
125
                $fields = array();
126
127
                foreach ($field as $key => $value) {
128
                    if (is_array($value)) {
129
                        foreach ($value as $ii => $v) {
130
                            $fields[$ii][$key] = $v;
131
                        }
132
                    } else {
133
                        $fields[max(0, count($fields) - 1)][$key] = $value;
134
                    }
135
                }
136
137
                $fieldCount = count($fields);
138
                for ($ii = 0; $ii < $fieldCount; $ii++) {
@@ 197-205 (lines=9) @@
194
195
                $fields = array();
196
197
                foreach ($field as $key => $value) {
198
                    if (is_array($value)) {
199
                        foreach ($value as $ii => $v) {
200
                            $fields[$ii][$key] = $v;
201
                        }
202
                    } else {
203
                        $fields[max(0, count($fields) - 1)][$key] = $value;
204
                    }
205
                }
206
207
                foreach ($fields as $index => $field_data) {
208
                    $fields[$index] = array_merge($data, $field_data);