Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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