Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2220-2226 (lines=7) @@
2217
        }
2218
        usort(
2219
            $actual,
2220
            function ($field1, $field2) {
2221
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2222
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2223
                }
2224
2225
                return $return;
2226
            }
2227
        );
2228
2229
        $expected = array(
@@ 4815-4821 (lines=7) @@
4812
        }
4813
        usort(
4814
            $normalized,
4815
            function ($field1, $field2) {
4816
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4817
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4818
                }
4819
4820
                return $return;
4821
            }
4822
        );
4823
4824
        return $normalized;