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(
@@ 4750-4756 (lines=7) @@
4747
        }
4748
        usort(
4749
            $normalized,
4750
            function ($field1, $field2) {
4751
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
4752
                    return strcasecmp($field1->languageCode, $field2->languageCode);
4753
                }
4754
4755
                return $return;
4756
            }
4757
        );
4758
4759
        return $normalized;