File "ScopeClosingBraceStandard.xml"
Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml
File size: 577 bytes
MIME-type: text/plain
Charset: utf-8
<documentation title="Closing Brace Indentation">
<standard>
<![CDATA[
Closing braces should be indented at the same level as the beginning of the scope.
]]>
</standard>
<code_comparison>
<code title="Valid: Consistent indentation level for scope.">
<![CDATA[
if ($test) {
$var = 1;
}
]]>
</code>
<code title="Invalid: The ending brace is indented further than the if statement.">
<![CDATA[
if ($test) {
$var = 1;
<em> </em>}
]]>
</code>
</code_comparison>
</documentation>