Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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