Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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