Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1167-1172 (lines=6) @@
1164
                // This is a string, so it may be a type hint, but it could
1165
                // also be a constant used as a default value.
1166
                $prevComma = false;
1167
                for ($t = $i; $t >= $opener; $t--) {
1168
                    if ($tokens[$t]['code'] === T_COMMA) {
1169
                        $prevComma = $t;
1170
                        break;
1171
                    }
1172
                }
1173
1174
                if ($prevComma !== false) {
1175
                    $nextEquals = false;
@@ 1176-1181 (lines=6) @@
1173
1174
                if ($prevComma !== false) {
1175
                    $nextEquals = false;
1176
                    for ($t = $prevComma; $t < $i; $t++) {
1177
                        if ($tokens[$t]['code'] === T_EQUAL) {
1178
                            $nextEquals = $t;
1179
                            break;
1180
                        }
1181
                    }
1182
1183
                    if ($nextEquals !== false) {
1184
                        break;