Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit db3d7d7

Browse files
authored
Merge pull request #30 from michalsn/elseif_sniff
Require usage of elseif instead of else if
2 parents 3efdfb1 + 4e2e802 commit db3d7d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeIgniter4/ruleset.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@
242242
Checks there are no blank lines before a function closing brace.
243243
-->
244244
<rule ref="CodeIgniter4.WhiteSpace.FunctionClosingBraceSpace"/>
245+
<!--
246+
The keyword elseif SHOULD be used instead of else if so that all control
247+
keywords look like single words.
248+
-->
249+
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
245250
<!--
246251
Checks for each declarations are styled properly.
247252
-->

0 commit comments

Comments
 (0)