Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2274-2280 (lines=7) @@
2271
        }
2272
        usort(
2273
            $actual,
2274
            function ($field1, $field2) {
2275
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2276
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2277
                }
2278
2279
                return $return;
2280
            }
2281
        );
2282
2283
        $expected = [
@@ 4934-4940 (lines=7) @@
4931
        }
4932
        usort(
4933
            $normalized,
4934
            function ($field1, $field2) {
4935
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4936
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4937
                }
4938
4939
                return $return;
4940
            }
4941
        );
4942
4943
        return $normalized;