Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1188-1193 (lines=6) @@
1185
                // This is a string, so it may be a type hint, but it could
1186
                // also be a constant used as a default value.
1187
                $prevComma = false;
1188
                for ($t = $i; $t >= $opener; $t--) {
1189
                    if ($tokens[$t]['code'] === T_COMMA) {
1190
                        $prevComma = $t;
1191
                        break;
1192
                    }
1193
                }
1194
1195
                if ($prevComma !== false) {
1196
                    $nextEquals = false;
@@ 1197-1202 (lines=6) @@
1194
1195
                if ($prevComma !== false) {
1196
                    $nextEquals = false;
1197
                    for ($t = $prevComma; $t < $i; $t++) {
1198
                        if ($tokens[$t]['code'] === T_EQUAL) {
1199
                            $nextEquals = $t;
1200
                            break;
1201
                        }
1202
                    }
1203
1204
                    if ($nextEquals !== false) {
1205
                        break;