-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Currently, this coding standard requires that all consecutive assignments be vertically aligned by their operator:
$width = 1900;
$height = 1080;
$foo = 'bar';
$someLongVariableName = 'baz';
While this is (subjectively) nice in the first example, it's a bit ugly in the second - it causes developers to either produce messier-looking code or to use less-meaningful names to avoid the extra spaces:
$foo = 'bar';
$slvn = 'baz';
I therefore propose removing the enforcement of this rule from this standard.
The question I'd like to ask our users is whether this alignment should still be allowed not enforced. This would mean that all three examples above would be considered valid. Alternatively, we could enforce having exactly one space on each side of the operator.
Does anyone have a strong preference here?