Changes could not be done to PSR-2. There's now PSR-12 in the making. As for the proposal itself, I find it unnecessary to force it. My personal preference is not to have empty lines in this case.
On Saturday, February 4, 2017 at 10:41:39 PM UTC+3, Ryan R. wrote: > > 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 php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/a35d1412-9560-40b2-a1f3-171f514f3a36%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.