Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2511-2517 (lines=7) @@
2508
        }
2509
        usort(
2510
            $actual,
2511
            function ($field1, $field2) {
2512
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2513
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2514
                }
2515
2516
                return $return;
2517
            }
2518
        );
2519
2520
        $expected = array(
@@ 5684-5690 (lines=7) @@
5681
        }
5682
        usort(
5683
            $normalized,
5684
            function ($field1, $field2) {
5685
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5686
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5687
                }
5688
5689
                return $return;
5690
            }
5691
        );
5692
5693
        return $normalized;