Update code sniffer rules to require space after keywords
[MAILPOET-1791]
This commit is contained in:
@ -45,15 +45,17 @@ class MailPoet_Sniffs_ControlStructures_ControlSignatureSniff extends PHP_CodeSn
|
|||||||
*/
|
*/
|
||||||
protected function getPatterns() {
|
protected function getPatterns() {
|
||||||
return array(
|
return array(
|
||||||
'do {EOL...} while(...);EOL',
|
'do {EOL...} while (...);EOL',
|
||||||
'while(...) {EOL',
|
'while (...) {EOL',
|
||||||
'for(...) {EOL',
|
'for (...) {EOL',
|
||||||
'if(...) {EOL',
|
'if (...) {EOL',
|
||||||
'foreach(...) {EOL',
|
'foreach (...) {EOL',
|
||||||
'} else if(...) {EOL',
|
'} else if (...) {EOL',
|
||||||
'} elseif(...) {EOL',
|
'} elseif (...) {EOL',
|
||||||
'} else {EOL',
|
'} else {EOL',
|
||||||
'do {EOL',
|
'do {EOL',
|
||||||
|
'switch (...) {EOL',
|
||||||
|
'catch (...) {EOL',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user