Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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