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(
@@ 5793-5799 (lines=7) @@
5790
        }
5791
        usort(
5792
            $normalized,
5793
            function ($field1, $field2) {
5794
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5795
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5796
                }
5797
5798
                return $return;
5799
            }
5800
        );
5801
5802
        return $normalized;