format/operators/unary-spacing
In the format-laravel and format-psr12 presets. Safe fix.
What it does
Unary operators should be placed adjacent to their operands.
Configuration
[format.rules]
"operators/unary-spacing" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
only-dec-inc |
bool |
Any | false |
only_dec_inc |
Replaces
unary_operator_spaces(php-cs-fixer)