donatj, 22 days ago You know, while we’re dropping parentheses on things in #PHP I’d like it if we dropped them from control structures like if/for/while End the argument of if($foo) { vs if ($foo){ once and for all if $foo { to rule them all
You know, while we’re dropping parentheses on things in #PHP I’d like it if we dropped them from control structures like if/for/while
End the argument of
if($foo) {
vs
if ($foo){
once and for all
if $foo {
to rule them all
ramsey, 21 days ago @donatj If you’re arguing over that, you have other problems than language syntax. 😉
@donatj If you’re arguing over that, you have other problems than language syntax. 😉
alessandrolai, 22 days ago @donatj you're skipping the "right" approach, the one with spaces on both sides, which is the one required by PSRs, and PER-CS lately: https://www.php-fig.org/per/coding-style/#5-control-structures
@donatj you're skipping the "right" approach, the one with spaces on both sides, which is the one required by PSRs, and PER-CS lately: https://www.php-fig.org/per/coding-style/#5-control-structures
Add comment