We're a place where coders share, stay up-to-date and grow their careers.
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!
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!