Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2514-2520 (lines=7) @@
2511
        }
2512
        usort(
2513
            $actual,
2514
            function ($field1, $field2) {
2515
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2516
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2517
                }
2518
2519
                return $return;
2520
            }
2521
        );
2522
2523
        $expected = array(
@@ 5729-5735 (lines=7) @@
5726
        }
5727
        usort(
5728
            $normalized,
5729
            function ($field1, $field2) {
5730
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5731
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5732
                }
5733
5734
                return $return;
5735
            }
5736
        );
5737
5738
        return $normalized;