Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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