Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1252-1257 (lines=6) @@
1249
                // This is a string, so it may be a type hint, but it could
1250
                // also be a constant used as a default value.
1251
                $prevComma = false;
1252
                for ($t = $i; $t >= $opener; $t--) {
1253
                    if ($tokens[$t]['code'] === T_COMMA) {
1254
                        $prevComma = $t;
1255
                        break;
1256
                    }
1257
                }
1258
1259
                if ($prevComma !== false) {
1260
                    $nextEquals = false;
@@ 1261-1266 (lines=6) @@
1258
1259
                if ($prevComma !== false) {
1260
                    $nextEquals = false;
1261
                    for ($t = $prevComma; $t < $i; $t++) {
1262
                        if ($tokens[$t]['code'] === T_EQUAL) {
1263
                            $nextEquals = $t;
1264
                            break;
1265
                        }
1266
                    }
1267
1268
                    if ($nextEquals !== false) {
1269
                        break;