On Sun, Apr 22, 2018 at 10:59 PM, Daniel Hunsaker <[email protected]> wrote: > Multiple spaces before (or, less often, after) an operator can be useful > when attempting to align operands. > > <?php > $short = 'foo'; > $somethingLonger = 'bar';
The problem with this is when you have a number of aligned variables, and then add a longer one (or remove the longest), it forces a much bigger change in the source diff than what is really being changed. Yes, you can often use "ignore whitespace" during review, but code (and "blame" history) has been modified as a result of whitespace. -- Woody Gilk http://about.me/shadowhand -- 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/CAGOJM6JoAjOZ-uuvKCYewXP68k5KOfxQ8nz4hnyWc_Tp%3D4EuUQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
