Code Duplication    Length = 6-6 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 2 locations

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