format/whitespace/line-ending
In the format-laravel and format-psr12 presets. Safe fix.
What it does
All PHP files must use same line ending.
Configuration
[format.rules]
"whitespace/line-ending" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
ending |
enum |
lf, crlf |
"lf" |
None (Pun’s own) |
Replaces
line_ending(php-cs-fixer)