Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2226-2232 (lines=7) @@
2223
        }
2224
        usort(
2225
            $actual,
2226
            function ($field1, $field2) {
2227
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2228
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2229
                }
2230
2231
                return $return;
2232
            }
2233
        );
2234
2235
        $expected = array(
@@ 4897-4903 (lines=7) @@
4894
        }
4895
        usort(
4896
            $normalized,
4897
            function ($field1, $field2) {
4898
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4899
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4900
                }
4901
4902
                return $return;
4903
            }
4904
        );
4905
4906
        return $normalized;