Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2675-2681 (lines=7) @@
2672
        }
2673
        usort(
2674
            $actual,
2675
            function ($field1, $field2) {
2676
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2677
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2678
                }
2679
2680
                return $return;
2681
            }
2682
        );
2683
2684
        $expected = [
@@ 6119-6125 (lines=7) @@
6116
        }
6117
        usort(
6118
            $normalized,
6119
            function ($field1, $field2) {
6120
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6121
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6122
                }
6123
6124
                return $return;
6125
            }
6126
        );
6127
6128
        return $normalized;