Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2218-2224 (lines=7) @@
2215
        }
2216
        usort(
2217
            $actual,
2218
            function ($field1, $field2) {
2219
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2220
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2221
                }
2222
2223
                return $return;
2224
            }
2225
        );
2226
2227
        $expected = array(
@@ 4793-4799 (lines=7) @@
4790
        }
4791
        usort(
4792
            $normalized,
4793
            function ($field1, $field2) {
4794
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4795
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4796
                }
4797
4798
                return $return;
4799
            }
4800
        );
4801
4802
        return $normalized;