Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2668-2674 (lines=7) @@
2665
        }
2666
        usort(
2667
            $actual,
2668
            function ($field1, $field2) {
2669
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2670
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2671
                }
2672
2673
                return $return;
2674
            }
2675
        );
2676
2677
        $expected = [
@@ 6160-6166 (lines=7) @@
6157
        }
6158
        usort(
6159
            $normalized,
6160
            function ($field1, $field2) {
6161
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6162
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6163
                }
6164
6165
                return $return;
6166
            }
6167
        );
6168
6169
        return $normalized;