Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

format/phpdoc/trim

In the format-laravel preset. Safe fix.

What it does

PHPDoc should start and end with content, excluding the very first and last line of the docblocks.

Configuration

[format.rules]
"phpdoc/trim" = true

To skip it in some files, add a @pun-ignore-file comment.

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?