Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1360-1365 (lines=6) @@
1357
                    // This is a string, so it may be a type hint, but it could
1358
                    // also be a constant used as a default value.
1359
                    $prevComma = false;
1360
                    for ($t = $i; $t >= $opener; $t--) {
1361
                        if ($tokens[$t]['code'] === T_COMMA) {
1362
                            $prevComma = $t;
1363
                            break;
1364
                        }
1365
                    }
1366
    
1367
                    if ($prevComma !== false) {
1368
                        $nextEquals = false;
@@ 1369-1374 (lines=6) @@
1366
    
1367
                    if ($prevComma !== false) {
1368
                        $nextEquals = false;
1369
                        for ($t = $prevComma; $t < $i; $t++) {
1370
                            if ($tokens[$t]['code'] === T_EQUAL) {
1371
                                $nextEquals = $t;
1372
                                break;
1373
                            }
1374
                        }
1375
    
1376
                        if ($nextEquals !== false) {
1377
                            break;