You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Currently, this coding standard requires that all consecutive assignments be vertically aligned by their operator:
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:
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?
The text was updated successfully, but these errors were encountered: