Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2569-2575 (lines=7) @@
2566
        }
2567
        usort(
2568
            $actual,
2569
            function ($field1, $field2) {
2570
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2571
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2572
                }
2573
2574
                return $return;
2575
            }
2576
        );
2577
2578
        $expected = array(
@@ 5848-5854 (lines=7) @@
5845
        }
5846
        usort(
5847
            $normalized,
5848
            function ($field1, $field2) {
5849
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5850
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5851
                }
5852
5853
                return $return;
5854
            }
5855
        );
5856
5857
        return $normalized;