Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2506-2512 (lines=7) @@
2503
        }
2504
        usort(
2505
            $actual,
2506
            function ($field1, $field2) {
2507
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2508
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2509
                }
2510
2511
                return $return;
2512
            }
2513
        );
2514
2515
        $expected = array(
@@ 5679-5685 (lines=7) @@
5676
        }
5677
        usort(
5678
            $normalized,
5679
            function ($field1, $field2) {
5680
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5681
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5682
                }
5683
5684
                return $return;
5685
            }
5686
        );
5687
5688
        return $normalized;