Index: coder_review_style.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/coder/coder_review/includes/coder_review_style.inc,v retrieving revision 1.7 diff -u -p -r1.7 coder_review_style.inc --- coder_review_style.inc 14 Aug 2009 00:15:47 -0000 1.7 +++ coder_review_style.inc 23 Sep 2009 10:05:05 -0000 @@ -26,13 +26,13 @@ function coder_review_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(