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(
@@ 5751-5757 (lines=7) @@
5748
        }
5749
        usort(
5750
            $normalized,
5751
            function ($field1, $field2) {
5752
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5753
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5754
                }
5755
5756
                return $return;
5757
            }
5758
        );
5759
5760
        return $normalized;