Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2629-2635 (lines=7) @@
2626
        }
2627
        usort(
2628
            $actual,
2629
            function ($field1, $field2) {
2630
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2631
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2632
                }
2633
2634
                return $return;
2635
            }
2636
        );
2637
2638
        $expected = array(
@@ 6033-6039 (lines=7) @@
6030
        }
6031
        usort(
6032
            $normalized,
6033
            function ($field1, $field2) {
6034
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6035
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6036
                }
6037
6038
                return $return;
6039
            }
6040
        );
6041
6042
        return $normalized;