re: A simple tip for cleaner code VIEW POST

        function foo($bar)
        { //why?

            if (...) {

        } //why?

When I started reading, I thought the problem was that the inconsistency of the placement of braces...


Well this is actually according to PSR - php’s community style guide :D Control flow has same line braces, functions have next line braces.


One more thing for me to dislike PSR... I really don't like they new line rules.
But thank you for explain me!

code of conduct - report abuse