Code Duplication    Length = 6-6 lines in 2 locations

src/Solr/SolrIndex.php 2 locations

@@ 231-236 (lines=6) @@
228
            $xml[] = $this->getFieldDefinition($name, $field, self::$fulltextTypeMap);
229
        }
230
231
        foreach ($this->filterFields as $name => $field) {
232
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
233
                continue;
234
            }
235
            $xml[] = $this->getFieldDefinition($name, $field);
236
        }
237
238
        foreach ($this->sortFields as $name => $field) {
239
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
@@ 238-243 (lines=6) @@
235
            $xml[] = $this->getFieldDefinition($name, $field);
236
        }
237
238
        foreach ($this->sortFields as $name => $field) {
239
            if ($field['fullfield'] == 'ID' || $field['fullfield'] == 'ClassName') {
240
                continue;
241
            }
242
            $xml[] = $this->getFieldDefinition($name, $field);
243
        }
244
245
        return implode("\n\t\t", $xml);
246
    }