Code Duplication    Length = 10-10 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 2 locations

@@ 434-443 (lines=10) @@
431
                    break;
432
                case 'T_SELF':
433
                case 'T_PARENT':
434
                case 'T_STATIC':
435
                    // Self and parent are valid, static invalid, but was probably intended as type hint.
436
                    if (isset($defaultStart) === false) {
437
                        if ($typeHintToken === false) {
438
                            $typeHintToken = $i;
439
                        }
440
441
                        $typeHint .= $tokens[$i]['content'];
442
                    }
443
                    break;
444
                case 'T_STRING':
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.
@@ 477-486 (lines=10) @@
474
                        $typeHint .= $tokens[$i]['content'];
475
                    }
476
                    break;
477
                case 'T_NS_SEPARATOR':
478
                    // Part of a type hint or default value.
479
                    if ($defaultStart === null) {
480
                        if ($typeHintToken === false) {
481
                            $typeHintToken = $i;
482
                        }
483
484
                        $typeHint .= $tokens[$i]['content'];
485
                    }
486
                    break;
487
                case 'T_NULLABLE':
488
                case 'T_INLINE_THEN': // Pre-PHPCS 2.8.0.
489
                    if ($defaultStart === null) {