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(
@@ 5478-5484 (lines=7) @@
5475
        }
5476
        usort(
5477
            $normalized,
5478
            function ($field1, $field2) {
5479
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5480
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5481
                }
5482
5483
                return $return;
5484
            }
5485
        );
5486
5487
        return $normalized;