File "ControlStructureSpacingStandard.xml"
Full Path: /home/warrior1/public_html/languages/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml
File size: 581 bytes
MIME-type: text/plain
Charset: utf-8
<documentation title="Control Structure Spacing">
<standard>
<![CDATA[
Control Structures should have 0 spaces after opening parentheses and 0 spaces before closing parentheses.
]]>
</standard>
<code_comparison>
<code title="Valid: Correct spacing.">
<![CDATA[
if (<em></em>$foo<em></em>) {
$var = 1;
}
]]>
</code>
<code title="Invalid: Whitespace used inside the parentheses.">
<![CDATA[
if (<em> </em>$foo<em> </em>) {
$var = 1;
}
]]>
</code>
</code_comparison>
</documentation>