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