Commit 07f9ed2 1 parent d55deff commit 07f9ed2 Copy full SHA for 07f9ed2
File tree 1 file changed +26
-0
lines changed
src/Standards/Generic/Docs/WhiteSpace
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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
+ <![CDATA[
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
+ <![CDATA[
18
+ ++<em> </em>$i;
19
+ --<em> </em>$i['key']['id'];
20
+ ClassName::$prop<em> </em>++;
21
+ $obj->prop<em>
22
+ </em>--;
23
+ ]]>
24
+ </code >
25
+ </code_comparison >
26
+ </documentation >
You can’t perform that action at this time.
0 commit comments