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