Skip to content

Commit

Permalink
Docs/WordPress.WhiteSpace.CastStructureSpacing (#1738)
Browse files Browse the repository at this point in the history
Adds documentation for the WordPress.WhiteSpace.CastStructureSpacing

Related to #1722
  • Loading branch information
ckanitz authored and jrfnl committed Jul 5, 2019
1 parent 173fdd6 commit bf3ef48
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<documentation title="Cast Structure Spacing">
<standard>
<![CDATA[
A type cast should be preceded by whitespace.
]]>
</standard>
<code_comparison>
<code title="Valid: space before typecast.">
<![CDATA[
$a =<em> </em>(int) '420';
]]>
</code>
<code title="Invalid: no space before typecast.">
<![CDATA[
$a <em>=(</em>int) '420';
]]>
</code>
</code_comparison>
</documentation>

0 comments on commit bf3ef48

Please sign in to comment.