Skip to content

Commit 13a8bc1

Browse files
ckanitzjrfnl
authored andcommitted
Docs/WordPress.WhiteSpace.DisallowInlineTabs (#1735)
Adds documentation for the WordPress.WhiteSpace.DisallowInlineTabs sniff Related to #1722
1 parent d00b44b commit 13a8bc1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<documentation title="Disallow Inline Tabs">
2+
<standard>
3+
<![CDATA[
4+
Use spaces for inline alignment.
5+
]]>
6+
</standard>
7+
<code_comparison>
8+
<code title="Valid: spaces used for inline alignment.">
9+
<![CDATA[
10+
$a = array(
11+
'abc'<em>[space]</em>=> 'lor',
12+
'b'<em>[space][space][space]</em>=> 'em',
13+
);
14+
]]>
15+
</code>
16+
<code title="Invalid: tabs used for inline alignment.">
17+
<![CDATA[
18+
$a = array(
19+
'abc'<em>[tab]</em>=> 'lor',
20+
'b'<em>[tab]</em>=> 'em',
21+
);
22+
]]>
23+
</code>
24+
</code_comparison>
25+
</documentation>

0 commit comments

Comments
 (0)