Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: assignment and array alignment #58

Open
tautrimas opened this issue Jan 26, 2015 · 0 comments
Open

PHP: assignment and array alignment #58

tautrimas opened this issue Jan 26, 2015 · 0 comments

Comments

@tautrimas
Copy link

We, developers, get into flamewars over whether to align array structure and variable assignments. Statistics of whether statements are aligned or not would be very interesting.

In ONGR Strict Standards (Squiz based, PSR-2 compatible) we forced unaligned statements, because of the argument that one element might git diff a lot of neighbourghing lines.

Aligned code example we dislike:

$garry            = 'red';
$longVariableName = 'orange';
$blue             = 'green';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant