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

format/statements/blank-line-before

In the format-laravel preset. Safe fix.

What it does

An empty line feed must precede any configured statement.

Configuration

[format.rules]
"statements/blank-line-before" = true

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

Options

Name Type Allowed values Default Upstream name
statements list break, case, continue, declare, default, do, exit, for, foreach, goto, if, include, include_once, phpdoc, require, require_once, return, switch, throw, try, while, yield, yield-from ["break", "continue", "declare", "return", "throw", "try"] statements

Replaces

More format/statements rules · Edit this page

Last updated on

Was this page helpful?