Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2507-2513 (lines=7) @@
2504
        }
2505
        usort(
2506
            $actual,
2507
            function ($field1, $field2) {
2508
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2509
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2510
                }
2511
2512
                return $return;
2513
            }
2514
        );
2515
2516
        $expected = array(
@@ 5310-5316 (lines=7) @@
5307
        }
5308
        usort(
5309
            $normalized,
5310
            function ($field1, $field2) {
5311
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5312
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5313
                }
5314
5315
                return $return;
5316
            }
5317
        );
5318
5319
        return $normalized;