Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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