Skip to content
Merged
Changes from all commits
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
21 changes: 21 additions & 0 deletions src/Standards/Generic/Docs/Formatting/SpaceBeforeCastStandard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<documentation title="Space Before Cast">
<standard>
<![CDATA[
There should be exactly one space before a cast operator.
]]>
</standard>
<code_comparison>
<code title="Valid: Single space before a cast operator.">
<![CDATA[
$integer =<em> </em>(int) $string;
$c = $a .<em> </em>(string) $b;
]]>
</code>
<code title="Invalid: No space or multiple spaces before a cast operator.">
<![CDATA[
$integer =<em></em>(int) $string;
$c = $a .<em> </em>(string) $b;
]]>
</code>
</code_comparison>
</documentation>