We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 040f675 + 1f90b17 commit 186814fCopy full SHA for 186814f
src/Standards/Generic/Docs/Formatting/SpaceBeforeCastStandard.xml
@@ -0,0 +1,21 @@
1
+<documentation title="Space Before Cast">
2
+ <standard>
3
+ <![CDATA[
4
+ There should be exactly one space before a cast operator.
5
+ ]]>
6
+ </standard>
7
+ <code_comparison>
8
+ <code title="Valid: Single space before a cast operator.">
9
10
+$integer =<em> </em>(int) $string;
11
+$c = $a .<em> </em>(string) $b;
12
13
+ </code>
14
+ <code title="Invalid: No space or multiple spaces before a cast operator.">
15
16
+$integer =<em></em>(int) $string;
17
18
19
20
+ </code_comparison>
21
+</documentation>
0 commit comments