Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2667-2673 (lines=7) @@
2664
        }
2665
        usort(
2666
            $actual,
2667
            function ($field1, $field2) {
2668
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2669
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2670
                }
2671
2672
                return $return;
2673
            }
2674
        );
2675
2676
        $expected = array(
@@ 6071-6077 (lines=7) @@
6068
        }
6069
        usort(
6070
            $normalized,
6071
            function ($field1, $field2) {
6072
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
6073
                    return strcasecmp($field1->languageCode, $field2->languageCode);
6074
                }
6075
6076
                return $return;
6077
            }
6078
        );
6079
6080
        return $normalized;