1
0
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:
Andreas Möller
2023-12-06 14:45:36 +01:00
committed by GitHub
parent d713252582
commit 269cfd55c0
2 changed files with 4 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ $config
'spacing' => 'one',
],
'constant_case' => true,
'elseif' => true,
'increment_style' => [
'style' => 'post',
],

View File

@@ -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";
}