We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55deff commit 07f9ed2Copy full SHA for 07f9ed2
src/Standards/Generic/Docs/WhiteSpace/IncrementDecrementSpacingStandard.xml
@@ -0,0 +1,26 @@
1
+<documentation title="Increment Decrement Spacing">
2
+ <standard>
3
+ <![CDATA[
4
+ There should be no whitespace between variables and increment/decrement operators.
5
+ ]]>
6
+ </standard>
7
+ <code_comparison>
8
+ <code title="Valid: No whitespace between variables and increment/decrement operators.">
9
10
+++<em></em>$i;
11
+--<em></em>$i['key']['id'];
12
+ClassName::$prop<em></em>++;
13
+$obj->prop<em></em>--;
14
15
+ </code>
16
+ <code title="Invalid: Whitespace between variables and increment/decrement operators.">
17
18
+++<em> </em>$i;
19
+--<em> </em>$i['key']['id'];
20
+ClassName::$prop<em> </em>++;
21
+$obj->prop<em>
22
+</em>--;
23
24
25
+ </code_comparison>
26
+</documentation>
0 commit comments