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(
@@ 5937-5943 (lines=7) @@
5934
        }
5935
        usort(
5936
            $normalized,
5937
            function ($field1, $field2) {
5938
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5939
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5940
                }
5941
5942
                return $return;
5943
            }
5944
        );
5945
5946
        return $normalized;