format/whitespace/no-trailing
In the format-laravel and format-psr12 presets. Safe fix.
What it does
There must be no trailing whitespace at the end of non-blank lines.
Configuration
[format.rules]
"whitespace/no-trailing" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
no_trailing_whitespace(php-cs-fixer)