Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2153-2159 (lines=7) @@
2150
        }
2151
        usort(
2152
            $actual,
2153
            function ($field1, $field2) {
2154
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2155
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2156
                }
2157
2158
                return $return;
2159
            }
2160
        );
2161
2162
        $expected = array(
@@ 4734-4740 (lines=7) @@
4731
        }
4732
        usort(
4733
            $normalized,
4734
            function ($field1, $field2) {
4735
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4736
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4737
                }
4738
4739
                return $return;
4740
            }
4741
        );
4742
4743
        return $normalized;