Skip to content

Commit bf3ef48

Browse files
ckanitzjrfnl
authored andcommitted
Docs/WordPress.WhiteSpace.CastStructureSpacing (#1738)
Adds documentation for the WordPress.WhiteSpace.CastStructureSpacing Related to #1722
1 parent 173fdd6 commit bf3ef48

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<documentation title="Cast Structure Spacing">
2+
<standard>
3+
<![CDATA[
4+
A type cast should be preceded by whitespace.
5+
]]>
6+
</standard>
7+
<code_comparison>
8+
<code title="Valid: space before typecast.">
9+
<![CDATA[
10+
$a =<em> </em>(int) '420';
11+
]]>
12+
</code>
13+
<code title="Invalid: no space before typecast.">
14+
<![CDATA[
15+
$a <em>=(</em>int) '420';
16+
]]>
17+
</code>
18+
</code_comparison>
19+
</documentation>

0 commit comments

Comments
 (0)