File "ElseIfDeclarationStandard.xml"
Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml
File size: 581 bytes
MIME-type: text/plain
Charset: utf-8
<documentation title="Elseif Declarations">
<standard>
<![CDATA[
PHP's elseif keyword should be used instead of else if.
]]>
</standard>
<code_comparison>
<code title="Valid: Single word elseif keyword used.">
<![CDATA[
if ($foo) {
$var = 1;
} <em>elseif</em> ($bar) {
$var = 2;
}
]]>
</code>
<code title="Invalid: Separate else and if keywords used.">
<![CDATA[
if ($foo) {
$var = 1;
} <em>else if</em> ($bar) {
$var = 2;
}
]]>
</code>
</code_comparison>
</documentation>