Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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