Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2667-2673 (lines=7) @@
2664
        }
2665
        usort(
2666
            $actual,
2667
            function ($field1, $field2) {
2668
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2669
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2670
                }
2671
2672
                return $return;
2673
            }
2674
        );
2675
2676
        $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;