You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
<documentationtitle="Aligning Blocks of Assignments">
2
2
<standard>
3
3
<![CDATA[
4
-
There should be one space on either side of an equals sign used to assign a value to a variable. In the case of a block of related assignments, more space may be inserted to promote readability.
4
+
There should be one space on either side of an equals sign used to assign a value to a variable. In the case of a block of related assignments, more space may be inserted to promote readability.
5
5
]]>
6
6
</standard>
7
7
<code_comparison>
8
-
<codetitle="Equals signs aligned">
8
+
<codetitle="Valid: Equals signs aligned.">
9
9
<![CDATA[
10
10
$shortVar <em>=</em> (1 + 2);
11
11
$veryLongVarName <em>=</em> 'string';
12
12
$var <em>=</em> foo($bar, $baz);
13
13
]]>
14
14
</code>
15
-
<codetitle="Not aligned; harder to read">
15
+
<codetitle="Invalid: Not aligned; harder to read.">
All php files in a subversion repository should have the svn:keywords property set to 'Author Id Revision' and the svn:eol-style property set to 'native'.
4
+
All PHP files in a subversion repository should have the svn:keywords property set to 'Author Id Revision' and the svn:eol-style property set to 'native'.
0 commit comments