format/control-flow/no-alternative-syntax
In the format-laravel preset. Safe fix.
What it does
Replace control structure alternative syntax to use braces.
Configuration
[format.rules]
"control-flow/no-alternative-syntax" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
fix-non-monolithic-code |
bool |
Any | true |
fix_non_monolithic_code |
Replaces
no_alternative_syntax(php-cs-fixer)AlternativeIfToBracket(rector)no-alternative-syntax(mago-linter)