Need whitespace and curly brackets. Please refer to the [coding style guide](https://github.com/yiisoft/yii2/wiki/Core-framework-code-style).