File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 4242 'no_extra_blank_lines ' => true ,
4343 'no_mixed_echo_print ' => true ,
4444 'no_singleline_whitespace_before_semicolons ' => true ,
45+ 'no_superfluous_elseif ' => true ,
4546 'no_trailing_whitespace ' => true ,
4647 'ordered_class_elements ' => true ,
4748 'random_api_migration ' => true ,
Original file line number Diff line number Diff line change @@ -212,9 +212,9 @@ function sect_to_file($string) {
212212 $ feat = "features. $ string.php " ;
213213 $ struct = "control-structures. $ string.php " ;
214214 if (@is_file ($ func )) return $ func ;
215- elseif (@is_file ($ chap )) return $ chap ;
216- elseif (@is_file ($ feat )) return $ feat ;
217- elseif (@is_file ($ struct )) return $ struct ;
215+ if (@is_file ($ chap )) return $ chap ;
216+ if (@is_file ($ feat )) return $ feat ;
217+ if (@is_file ($ struct )) return $ struct ;
218218 else return "$ string.php " ;
219219}
220220
You can’t perform that action at this time.
0 commit comments