Skip to content
On this page

ElseIfDeclaration

Verifies that there are no else if statements (elseif should be used instead).

Scope

PSR2.ControlStructures.ElseIfDeclaration

Description

PHP's elseif keyword should be used instead of else if.

Usage

xml
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"></rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.