format/whitespace/no-extra-blank-lines
In the format-laravel and format-psr12 presets. Safe fix.
What it does
Removes extra blank lines and/or blank lines following configuration.
Configuration
[format.rules]
"whitespace/no-extra-blank-lines" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
tokens |
list |
attribute, break, case, comma, continue, curly-brace-block, default, extra, parenthesis-brace-block, return, square-brace-block, switch, throw, use, use-trait |
["extra"] |
tokens |
Replaces
no_extra_blank_lines(php-cs-fixer)