Skip to content
Snippets Groups Projects
Commit 6c3c1b80 authored by Stella Power's avatar Stella Power
Browse files

#583136 by willmoy, matason - added 'case' to list of keywords not to enforce a

no space between it and (
parent 21652c66
No related branches found
No related tags found
No related merge requests found
......@@ -26,13 +26,13 @@ function coder_style_reviews() {
),
array(
'#type' => 'regex',
'#value' => '\s(if|elseif|while|foreach|switch|return|for|catch)\(',
'#value' => '\s(if|elseif|while|foreach|switch|case|return|for|catch)\(',
'#warning' => 'Control statements should have one space between the control keyword and opening parenthesis',
),
array(
'#type' => 'regex',
'#value' => '[\s\(](\w+)\s\(',
'#not' => '^(if|elseif|while|foreach|switch|return|for|list|catch)$',
'#not' => '^(if|elseif|while|foreach|switch|case|return|for|list|catch)$',
'#warning' => 'Functions should be called with no spaces between the function name and opening parentheses',
),
array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment