What Are Braces For?

You know, these things:



If you know the answer, please tell the yii developers, because they seem unaware of their existence or meaning.

How does the Yii development team’s choice of code style affect you?

In any case, if you’re referring to the omission of braces for single line statements, I tend to do the same. I believe that for development of Yii 2, the team are following a coding “standard” of some sort, so it may with meet your approval.

My experience says that braces for single line statements is the best way to escape problems in future. I make it in my own "coding standard". And I recomend it to all developers.

I think Yii 2 is actually PSR0-compliant.