Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2510-2516 (lines=7) @@
2507
        }
2508
        usort(
2509
            $actual,
2510
            function ($field1, $field2) {
2511
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2512
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2513
                }
2514
2515
                return $return;
2516
            }
2517
        );
2518
2519
        $expected = array(
@@ 5768-5774 (lines=7) @@
5765
        }
5766
        usort(
5767
            $normalized,
5768
            function ($field1, $field2) {
5769
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5770
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5771
                }
5772
5773
                return $return;
5774
            }
5775
        );
5776
5777
        return $normalized;