PHPCSExtra icon indicating copy to clipboard operation
PHPCSExtra copied to clipboard

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

Open akalongman opened this issue 3 years ago • 1 comments

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.

akalongman avatar Dec 21 '21 09:12 akalongman

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.

jrfnl avatar Dec 21 '21 10:12 jrfnl