mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Enhancement: Enable elseif fixer (#859)
This commit is contained in:
@@ -28,6 +28,7 @@ $config
|
||||
'spacing' => 'one',
|
||||
],
|
||||
'constant_case' => true,
|
||||
'elseif' => true,
|
||||
'increment_style' => [
|
||||
'style' => 'post',
|
||||
],
|
||||
|
||||
@@ -212,9 +212,9 @@ function sect_to_file($string) {
|
||||
$feat = "features.$string.php";
|
||||
$struct = "control-structures.$string.php";
|
||||
if (@is_file($func)) return $func;
|
||||
else if (@is_file($chap)) return $chap;
|
||||
else if (@is_file($feat)) return $feat;
|
||||
else if (@is_file($struct)) return $struct;
|
||||
elseif (@is_file($chap)) return $chap;
|
||||
elseif (@is_file($feat)) return $feat;
|
||||
elseif (@is_file($struct)) return $struct;
|
||||
else return "$string.php";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user