Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2482-2488 (lines=7) @@
2479
        }
2480
        usort(
2481
            $actual,
2482
            function ($field1, $field2) {
2483
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
2484
                    return strcasecmp($field1->languageCode, $field2->languageCode);
2485
                }
2486
2487
                return $return;
2488
            }
2489
        );
2490
2491
        $expected = array(
@@ 5239-5245 (lines=7) @@
5236
        }
5237
        usort(
5238
            $normalized,
5239
            function ($field1, $field2) {
5240
                if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) {
5241
                    return strcasecmp($field1->languageCode, $field2->languageCode);
5242
                }
5243
5244
                return $return;
5245
            }
5246
        );
5247
5248
        return $normalized;