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.
Indeed I believe allowing (enforcing ?) a single empty line at the
beginning of the conditional statement would enhance the readability of the
code, especially when multiple conditional statements are nested.
i.e :
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
instead of
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/4e2b1b8e-af0c-453c-86fb-33bffc435f1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.