Update code sniffer rules to require space after keywords

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 12:36:10 +01:00
committed by M. Shull
parent 102a994a81
commit b2e5952896

View File

@ -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',
); );
} }
} }