Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2511-2517 (lines=7) @@
2508
        }
2509
        usort(
2510
            $actual,
2511
            function ($field1, $field2) {
2512
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2513
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2514
                }
2515
2516
                return $return;
2517
            }
2518
        );
2519
2520
        $expected = array(
@@ 5526-5532 (lines=7) @@
5523
        }
5524
        usort(
5525
            $normalized,
5526
            function ($field1, $field2) {
5527
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5528
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5529
                }
5530
5531
                return $return;
5532
            }
5533
        );
5534
5535
        return $normalized;