Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2483-2489 (lines=7) @@
2480
        }
2481
        usort(
2482
            $actual,
2483
            function ($field1, $field2) {
2484
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2485
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2486
                }
2487
2488
                return $return;
2489
            }
2490
        );
2491
2492
        $expected = array(
@@ 5280-5286 (lines=7) @@
5277
        }
5278
        usort(
5279
            $normalized,
5280
            function ($field1, $field2) {
5281
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5282
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5283
                }
5284
5285
                return $return;
5286
            }
5287
        );
5288
5289
        return $normalized;