Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2660-2666 (lines=7) @@
2657
        }
2658
        usort(
2659
            $actual,
2660
            function ($field1, $field2) {
2661
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2662
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2663
                }
2664
2665
                return $return;
2666
            }
2667
        );
2668
2669
        $expected = [
@@ 6094-6100 (lines=7) @@
6091
        }
6092
        usort(
6093
            $normalized,
6094
            function ($field1, $field2) {
6095
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6096
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6097
                }
6098
6099
                return $return;
6100
            }
6101
        );
6102
6103
        return $normalized;