Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2273-2279 (lines=7) @@
2270
        }
2271
        usort(
2272
            $actual,
2273
            function ($field1, $field2) {
2274
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2275
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2276
                }
2277
2278
                return $return;
2279
            }
2280
        );
2281
2282
        $expected = array(
@@ 4848-4854 (lines=7) @@
4845
        }
4846
        usort(
4847
            $normalized,
4848
            function ($field1, $field2) {
4849
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4850
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4851
                }
4852
4853
                return $return;
4854
            }
4855
        );
4856
4857
        return $normalized;