Code Duplication    Length = 6-6 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 2 locations

@@ 448-453 (lines=6) @@
445
                    // This is a string, so it may be a type hint, but it could
446
                    // also be a constant used as a default value.
447
                    $prevComma = false;
448
                    for ($t = $i; $t >= $opener; $t--) {
449
                        if ($tokens[$t]['code'] === T_COMMA) {
450
                            $prevComma = $t;
451
                            break;
452
                        }
453
                    }
454
455
                    if ($prevComma !== false) {
456
                        $nextEquals = false;
@@ 457-462 (lines=6) @@
454
455
                    if ($prevComma !== false) {
456
                        $nextEquals = false;
457
                        for ($t = $prevComma; $t < $i; $t++) {
458
                            if ($tokens[$t]['code'] === T_EQUAL) {
459
                                $nextEquals = $t;
460
                                break;
461
                            }
462
                        }
463
464
                        if ($nextEquals !== false) {
465
                            break;