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(
@@ 4799-4805 (lines=7) @@
4796
        }
4797
        usort(
4798
            $normalized,
4799
            function ($field1, $field2) {
4800
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4801
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4802
                }
4803
4804
                return $return;
4805
            }
4806
        );
4807
4808
        return $normalized;