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

Please add a sniff to format array key => value pairs #98

Open
akalongman opened this issue Dec 21, 2021 · 1 comment
Open

Please add a sniff to format array key => value pairs #98

akalongman opened this issue Dec 21, 2021 · 1 comment

Comments

@akalongman
Copy link

Please add a sniff to format array key => value pairs, like PHPStorm does.
Peek 2021-12-20 16-16

The main difference between already existing sniffs is they do not consider empty lines between key => value pairs. Would be great, if this feature will be configurable, e.g. enable/disable.

@jrfnl
Copy link
Member

jrfnl commented Dec 21, 2021

A sniff for aligning the arrows is already in the works and will be pulled once I have some time to finish it.

I will take your feature request for a toggle to re-set the alignment requirement on an empty line within an array into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants