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() {
return array(
'do {EOL...} while(...);EOL',
'while(...) {EOL',
'for(...) {EOL',
'if(...) {EOL',
'foreach(...) {EOL',
'} else if(...) {EOL',
'} elseif(...) {EOL',
'do {EOL...} while (...);EOL',
'while (...) {EOL',
'for (...) {EOL',
'if (...) {EOL',
'foreach (...) {EOL',
'} else if (...) {EOL',
'} elseif (...) {EOL',
'} else {EOL',
'do {EOL',
'switch (...) {EOL',
'catch (...) {EOL',
);
}
}