format/whitespace/final-newline
In the format-laravel and format-psr12 presets. Safe fix.
What it does
A PHP file without end tag must always end with a single empty line feed.
Configuration
[format.rules]
"whitespace/final-newline" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
single_blank_line_at_eof(php-cs-fixer)