format/control-flow/braces
In the format-laravel and format-psr12 presets. Safe fix.
What it does
The body of each control structure MUST be enclosed within braces.
Configuration
[format.rules]
"control-flow/braces" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
control_structure_braces(php-cs-fixer)CompleteMissingIfElseBracket(rector)block-statement(mago-linter)