Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<documentation title="Language Construct Spacing">
<standard>
<![CDATA[
Language constructs must contain a single space between themselves and their content. This sniff supports the following language constructs: echo, print, return, include, include_once, require, require_once, new, yield, yield from, throw, namespace and use.
]]>
</standard>
<code_comparison>
<code title="Valid: Single space after language construct.">
<![CDATA[
echo<em> </em>'Hello, World!';
throw<em> </em>new<em> </em>Exception();
return<em> </em>$newLine;
]]>
</code>
<code title="Invalid: No space, more than one space or newline after language construct.">
<![CDATA[
echo<em></em>'Hello, World!';
throw<em> </em>new<em> </em>Exception();
return<em></em>
$newLine;
]]>
</code>
</code_comparison>
</documentation>