Code Duplication    Length = 6-6 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 2 locations

@@ 350-355 (lines=6) @@
347
                    // This is a string, so it may be a type hint, but it could
348
                    // also be a constant used as a default value.
349
                    $prevComma = false;
350
                    for ($t = $i; $t >= $opener; $t--) {
351
                        if ($tokens[$t]['code'] === T_COMMA) {
352
                            $prevComma = $t;
353
                            break;
354
                        }
355
                    }
356
357
                    if ($prevComma !== false) {
358
                        $nextEquals = false;
@@ 359-364 (lines=6) @@
356
357
                    if ($prevComma !== false) {
358
                        $nextEquals = false;
359
                        for ($t = $prevComma; $t < $i; $t++) {
360
                            if ($tokens[$t]['code'] === T_EQUAL) {
361
                                $nextEquals = $t;
362
                                break;
363
                            }
364
                        }
365
366
                        if ($nextEquals !== false) {
367
                            break;