Code Duplication    Length = 7-7 lines in 2 locations

eZ/Publish/API/Repository/Tests/ContentServiceTest.php 2 locations

@@ 2571-2577 (lines=7) @@
2568
        }
2569
        usort(
2570
            $actual,
2571
            function ($field1, $field2) {
2572
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2573
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2574
                }
2575
2576
                return $return;
2577
            }
2578
        );
2579
2580
        $expected = array(
@@ 5883-5889 (lines=7) @@
5880
        }
5881
        usort(
5882
            $normalized,
5883
            function ($field1, $field2) {
5884
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5885
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5886
                }
5887
5888
                return $return;
5889
            }
5890
        );
5891
5892
        return $normalized;