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(
@@ 6114-6120 (lines=7) @@
6111
        }
6112
        usort(
6113
            $normalized,
6114
            function ($field1, $field2) {
6115
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6116
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6117
                }
6118
6119
                return $return;
6120
            }
6121
        );
6122
6123
        return $normalized;