I'll chime in and say that neither of proposed changes appeal to me.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/20170204230621.5fa888f5%40namek.
For more options, visit https://groups.google.com/d/optout.
Hello,I'd like to propose a change to the PSR-2 rule concerning the presence of one (and only one) empty line after opening braces for conditional statements.
can you link to where in PSR-2 you're seeing that?
Personally I prefer a blank line before the }else{
I use an extreme example here to show how relaxing coding standards can lead to unexpected results and thus inconsistency. It seems to me that developers relying on PHPCS to keep their code clean through checking and auto-fixing will now have to use custom rulesets to enforce what is a pretty standard rule. That feels like a big step backwards.
I use an extreme example here to show how relaxing coding standards can lead to unexpected results and thus inconsistency. It seems to me that developers relying on PHPCS to keep their code clean through checking and auto-fixing will now have to use custom rulesets to enforce what is a pretty standard rule. That feels like a big step backwards.@Greg : Would it not be possible to add some kind of parameter value to indicate the upper limits authorized ? And set it to 1 by default (or 0 since you do not want to modify the current system because of the number of projects relying on it) ?Then if we want to allow empty lines we could simply modify the parameter value !
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/10a99a91-547e-4cc9-b05f-d58f2b6ef7b4%40googlegroups.com.