We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
elseif
1 parent d713252 commit 269cfd5Copy full SHA for 269cfd5
.php-cs-fixer.php
@@ -28,6 +28,7 @@
28
'spacing' => 'one',
29
],
30
'constant_case' => true,
31
+ 'elseif' => true,
32
'increment_style' => [
33
'style' => 'post',
34
include/layout.inc
@@ -212,9 +212,9 @@ function sect_to_file($string) {
212
$feat = "features.$string.php";
213
$struct = "control-structures.$string.php";
214
if (@is_file($func)) return $func;
215
- else if (@is_file($chap)) return $chap;
216
- else if (@is_file($feat)) return $feat;
217
- 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;
218
else return "$string.php";
219
}
220
0 commit comments