Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2506-2512 (lines=7) @@
2503
        }
2504
        usort(
2505
            $actual,
2506
            function ($field1, $field2) {
2507
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2508
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2509
                }
2510
2511
                return $return;
2512
            }
2513
        );
2514
2515
        $expected = array(
@@ 5521-5527 (lines=7) @@
5518
        }
5519
        usort(
5520
            $normalized,
5521
            function ($field1, $field2) {
5522
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5523
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5524
                }
5525
5526
                return $return;
5527
            }
5528
        );
5529
5530
        return $normalized;