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 = [
@@ 4980-4986 (lines=7) @@
4977
        }
4978
        usort(
4979
            $normalized,
4980
            function ($field1, $field2) {
4981
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4982
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4983
                }
4984
4985
                return $return;
4986
            }
4987
        );
4988
4989
        return $normalized;