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

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