Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1376-1381 (lines=6) @@
1373
                    // This is a string, so it may be a type hint, but it could
1374
                    // also be a constant used as a default value.
1375
                    $prevComma = false;
1376
                    for ($t = $i; $t >= $opener; $t--) {
1377
                        if ($tokens[$t]['code'] === T_COMMA) {
1378
                            $prevComma = $t;
1379
                            break;
1380
                        }
1381
                    }
1382
1383
                    if ($prevComma !== false) {
1384
                        $nextEquals = false;
@@ 1385-1390 (lines=6) @@
1382
1383
                    if ($prevComma !== false) {
1384
                        $nextEquals = false;
1385
                        for ($t = $prevComma; $t < $i; $t++) {
1386
                            if ($tokens[$t]['code'] === T_EQUAL) {
1387
                                $nextEquals = $t;
1388
                                break;
1389
                            }
1390
                        }
1391
1392
                        if ($nextEquals !== false) {
1393
                            break;