format/functions/argument-spacing
In the format-laravel and format-psr12 presets. Safe fix.
What it does
In method arguments and method call, there MUST NOT be a space before each comma and there MUST be one space after each comma. Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line.
Configuration
[format.rules]
"functions/argument-spacing" = 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 |
attribute-placement |
enum |
ignore, same-line, standalone |
"standalone" |
attribute_placement |
keep-multiple-spaces-after-comma |
bool |
Any | false |
keep_multiple_spaces_after_comma |
on-multiline |
enum |
ignore, ensure-single-line, ensure-fully-multiline, ensure-single-line-for-single-argument |
"ensure-fully-multiline" |
on_multiline |
Replaces
method_argument_space(php-cs-fixer)