Skip to content

Commit

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

Related to #1722
  • Loading branch information
ckanitz authored and jrfnl committed Jul 18, 2019
1 parent d00b44b commit 13a8bc1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions WordPress/Docs/WhiteSpace/DisallowInlineTabsStandard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<documentation title="Disallow Inline Tabs">
<standard>
<![CDATA[
Use spaces for inline alignment.
]]>
</standard>
<code_comparison>
<code title="Valid: spaces used for inline alignment.">
<![CDATA[
$a = array(
'abc'<em>[space]</em>=> 'lor',
'b'<em>[space][space][space]</em>=> 'em',
);
]]>
</code>
<code title="Invalid: tabs used for inline alignment.">
<![CDATA[
$a = array(
'abc'<em>[tab]</em>=> 'lor',
'b'<em>[tab]</em>=> 'em',
);
]]>
</code>
</code_comparison>
</documentation>

0 comments on commit 13a8bc1

Please sign in to comment.