format/attributes/ordered
Not in any preset. Safe fix.
What it does
Sorts attributes using the configured sort algorithm.
Configuration
[format.rules]
"attributes/ordered" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
order |
list |
Any | [] |
order |
sort |
enum |
alphabetical, custom |
"alphabetical" |
sort_algorithm |
Replaces
ordered_attributes(php-cs-fixer)