Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2668-2674 (lines=7) @@
2665
        }
2666
        usort(
2667
            $actual,
2668
            function ($field1, $field2) {
2669
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2670
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2671
                }
2672
2673
                return $return;
2674
            }
2675
        );
2676
2677
        $expected = array(
@@ 6072-6078 (lines=7) @@
6069
        }
6070
        usort(
6071
            $normalized,
6072
            function ($field1, $field2) {
6073
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6074
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6075
                }
6076
6077
                return $return;
6078
            }
6079
        );
6080
6081
        return $normalized;