Control structure continuation keyword must be on the configured line.
The position of the keyword that continues the control structure.
Allowed values: 'next_line'
and 'same_line'
Default value: 'same_line'
Default configuration.
--- Original
+++ New
<?php
if ($baz == true) {
echo "foo";
-}
-else {
+} else {
echo "bar";
}
With configuration: ['position' => 'next_line']
.
--- Original
+++ New
<?php
if ($baz == true) {
echo "foo";
-} else {
+}
+else {
echo "bar";
}
The rule is part of the following rule sets:
PhpCsFixer\Fixer\ControlStructure\ControlStructureContinuationPositionFixer