Code Duplication    Length = 6-6 lines in 2 locations

code/solr/SolrIndex.php 2 locations

@@ 206-211 (lines=6) @@
203
            $xml[] = $this->getFieldDefinition($name, $field, self::$fulltextTypeMap);
204
        }
205
206
        foreach ($this->filterFields as $name => $field) {
207
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
208
                continue;
209
            }
210
            $xml[] = $this->getFieldDefinition($name, $field);
211
        }
212
213
        foreach ($this->sortFields as $name => $field) {
214
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
@@ 213-218 (lines=6) @@
210
            $xml[] = $this->getFieldDefinition($name, $field);
211
        }
212
213
        foreach ($this->sortFields as $name => $field) {
214
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
215
                continue;
216
            }
217
            $xml[] = $this->getFieldDefinition($name, $field);
218
        }
219
220
        return implode("\n\t\t", $xml);
221
    }