Code Duplication    Length = 7-7 lines in 2 locations

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

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