Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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