format/arrays/space-after-comma
In the format-laravel preset. Safe fix.
What it does
In array declaration, there MUST be a whitespace after each comma.
Configuration
[format.rules]
"arrays/space-after-comma" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
ensure-single-space |
bool |
Any | false |
ensure_single_space |
Replaces
whitespace_after_comma_in_array(php-cs-fixer)