Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2515-2521 (lines=7) @@
2512
        }
2513
        usort(
2514
            $actual,
2515
            function ($field1, $field2) {
2516
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2517
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2518
                }
2519
2520
                return $return;
2521
            }
2522
        );
2523
2524
        $expected = array(
@@ 5773-5779 (lines=7) @@
5770
        }
5771
        usort(
5772
            $normalized,
5773
            function ($field1, $field2) {
5774
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5775
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5776
                }
5777
5778
                return $return;
5779
            }
5780
        );
5781
5782
        return $normalized;