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(
@@ 5745-5751 (lines=7) @@
5742
        }
5743
        usort(
5744
            $normalized,
5745
            function ($field1, $field2) {
5746
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5747
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5748
                }
5749
5750
                return $return;
5751
            }
5752
        );
5753
5754
        return $normalized;