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

format/control-flow/no-unneeded-braces

In the format-laravel preset. Safe fix.

What it does

Removes unneeded braces that are superfluous and aren’t part of a control structure’s body.

Configuration

[format.rules]
"control-flow/no-unneeded-braces" = true

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

Options

Name Type Allowed values Default Upstream name
namespaces bool Any false namespaces

Replaces

More format/control-flow rules · Edit this page

Last updated on

Was this page helpful?