Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2567-2573 (lines=7) @@
2564
        }
2565
        usort(
2566
            $actual,
2567
            function ($field1, $field2) {
2568
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2569
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2570
                }
2571
2572
                return $return;
2573
            }
2574
        );
2575
2576
        $expected = array(
@@ 5901-5907 (lines=7) @@
5898
        }
5899
        usort(
5900
            $normalized,
5901
            function ($field1, $field2) {
5902
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5903
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5904
                }
5905
5906
                return $return;
5907
            }
5908
        );
5909
5910
        return $normalized;