Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1314-1319 (lines=6) @@
1311
                // This is a string, so it may be a type hint, but it could
1312
                // also be a constant used as a default value.
1313
                $prevComma = false;
1314
                for ($t = $i; $t >= $opener; $t--) {
1315
                    if ($tokens[$t]['code'] === T_COMMA) {
1316
                        $prevComma = $t;
1317
                        break;
1318
                    }
1319
                }
1320
1321
                if ($prevComma !== false) {
1322
                    $nextEquals = false;
@@ 1323-1328 (lines=6) @@
1320
1321
                if ($prevComma !== false) {
1322
                    $nextEquals = false;
1323
                    for ($t = $prevComma; $t < $i; $t++) {
1324
                        if ($tokens[$t]['code'] === T_EQUAL) {
1325
                            $nextEquals = $t;
1326
                            break;
1327
                        }
1328
                    }
1329
1330
                    if ($nextEquals !== false) {
1331
                        break;