Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2482-2488 (lines=7) @@
2479
        }
2480
        usort(
2481
            $actual,
2482
            function ($field1, $field2) {
2483
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2484
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2485
                }
2486
2487
                return $return;
2488
            }
2489
        );
2490
2491
        $expected = array(
@@ 5237-5243 (lines=7) @@
5234
        }
5235
        usort(
5236
            $normalized,
5237
            function ($field1, $field2) {
5238
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5239
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5240
                }
5241
5242
                return $return;
5243
            }
5244
        );
5245
5246
        return $normalized;