| 1 |
<?php |
<?php |
| 2 |
// $Id: coder_style.inc,v 1.16.2.18.2.9 2009/08/09 18:31:53 snpower Exp $ |
// $Id: coder_style.inc,v 1.16.2.18.2.10 2009/08/14 00:18:30 snpower Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 26 |
), |
), |
| 27 |
array( |
array( |
| 28 |
'#type' => 'regex', |
'#type' => 'regex', |
| 29 |
'#value' => '\s(if|elseif|while|foreach|switch|return|for|catch)\(', |
'#value' => '\s(if|elseif|while|foreach|switch|case|return|for|catch)\(', |
| 30 |
'#warning' => 'Control statements should have one space between the control keyword and opening parenthesis', |
'#warning' => 'Control statements should have one space between the control keyword and opening parenthesis', |
| 31 |
), |
), |
| 32 |
array( |
array( |
| 33 |
'#type' => 'regex', |
'#type' => 'regex', |
| 34 |
'#value' => '[\s\(](\w+)\s\(', |
'#value' => '[\s\(](\w+)\s\(', |
| 35 |
'#not' => '^(if|elseif|while|foreach|switch|return|for|list|catch)$', |
'#not' => '^(if|elseif|while|foreach|switch|case|return|for|list|catch)$', |
| 36 |
'#warning' => 'Functions should be called with no spaces between the function name and opening parentheses', |
'#warning' => 'Functions should be called with no spaces between the function name and opening parentheses', |
| 37 |
), |
), |
| 38 |
array( |
array( |