formatted the code according to "Yii2 Core framework code style"

Formatted every code of Yii2 except outside library such as jui, etc. I have formatted the code with utmost care.