Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2690-2696 (lines=7) @@
2687
        }
2688
        usort(
2689
            $actual,
2690
            function ($field1, $field2) {
2691
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2692
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2693
                }
2694
2695
                return $return;
2696
            }
2697
        );
2698
2699
        $expected = array(
@@ 6154-6160 (lines=7) @@
6151
        }
6152
        usort(
6153
            $normalized,
6154
            function ($field1, $field2) {
6155
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6156
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6157
                }
6158
6159
                return $return;
6160
            }
6161
        );
6162
6163
        return $normalized;