Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2565-2571 (lines=7) @@
2562
        }
2563
        usort(
2564
            $actual,
2565
            function ($field1, $field2) {
2566
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2567
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2568
                }
2569
2570
                return $return;
2571
            }
2572
        );
2573
2574
        $expected = array(
@@ 5866-5872 (lines=7) @@
5863
        }
5864
        usort(
5865
            $normalized,
5866
            function ($field1, $field2) {
5867
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5868
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5869
                }
5870
5871
                return $return;
5872
            }
5873
        );
5874
5875
        return $normalized;