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

[11.x] remove arbitrary chaining alignment #10166

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

browner12
Copy link
Contributor

use a single indent for chains on a new line, rather than trying to align it with some arbitrary pattern in the first line. this arbitrary alignment very easily gets out of sync as changes occur to the code, and often times the adjustments are not made to the chained alignment. the single indent alignment does not suffer this problem.

this is to bring us in line with laravel/framework#53835 and laravel/framework#53748

this commit only contains whitespace changes.

if accepted, I will make these adjustments to the remaining docs pages.

use a single indent for chains on a new line, rather than trying to align it with some arbitrary pattern in the first line. this arbitrary alignment very easily gets out of sync as changes occur to the code, and often times the adjustments are not made to the chained alignment. the single indent alignment does not suffer this problem.

this is to bring us in line with laravel/framework#53835 and laravel/framework#53748

this commit only contains whitespace changes.

if accepted, I will make these adjustments to the remaining docs pages.
browner12 added a commit to browner12/docs that referenced this pull request Feb 14, 2025
use a single indent for multiline ternary statements. this is better than alignment with an arbitrary pattern in the first line because it doesn't need to be shifted as adjustments are made to the code.

along with laravel#10166
taylorotwell pushed a commit that referenced this pull request Feb 14, 2025
use a single indent for multiline ternary statements. this is better than alignment with an arbitrary pattern in the first line because it doesn't need to be shifted as adjustments are made to the code.

along with #10166
@taylorotwell taylorotwell merged commit 490a498 into laravel:11.x Feb 14, 2025
@browner12 browner12 deleted the AB-chain-alignment branch February 14, 2025 19:13
browner12 added a commit to browner12/docs that referenced this pull request Feb 15, 2025
taylorotwell pushed a commit that referenced this pull request Feb 17, 2025
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

Successfully merging this pull request may close these issues.

2 participants