Code Duplication    Length = 6-6 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 2 locations

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