Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2570-2576 (lines=7) @@
2567
        }
2568
        usort(
2569
            $actual,
2570
            function ($field1, $field2) {
2571
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2572
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2573
                }
2574
2575
                return $return;
2576
            }
2577
        );
2578
2579
        $expected = array(
@@ 5861-5867 (lines=7) @@
5858
        }
5859
        usort(
5860
            $normalized,
5861
            function ($field1, $field2) {
5862
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5863
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5864
                }
5865
5866
                return $return;
5867
            }
5868
        );
5869
5870
        return $normalized;