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(
@@ 5764-5770 (lines=7) @@
5761
        }
5762
        usort(
5763
            $normalized,
5764
            function ($field1, $field2) {
5765
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5766
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5767
                }
5768
5769
                return $return;
5770
            }
5771
        );
5772
5773
        return $normalized;