File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
src/Standards/Generic/Docs Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ class Foo <em>{</em>
15
15
<![CDATA[
16
16
class Foo
17
17
<em>{</em>
18
+ }
19
+ ]]>
20
+ </code >
21
+ </code_comparison >
22
+ <code_comparison >
23
+ <code title =" Valid: Opening brace is the last thing on the line." >
24
+ <![CDATA[
25
+ class Foo <em>{</em>
18
26
}
19
27
]]>
20
28
</code >
Original file line number Diff line number Diff line change 10
10
if (!<em> </em>$someVar || !<em> </em>$x instanceOf stdClass) {};
11
11
]]>
12
12
</code >
13
- <code title =" Invalid: A NOT operator not followed by whitespace." >
13
+ <code title =" Invalid: A NOT operator not followed by whitespace or followed by too much whitespace ." >
14
14
<![CDATA[
15
15
if (!<em></em>$someVar || !<em></em>$x instanceOf stdClass) {};
16
- ]]>
17
- </code >
18
- <code title =" Invalid: A NOT operator followed by a new line or more than one space." >
19
- <![CDATA[
16
+
20
17
if (!<em> </em>$someVar || !<em>
21
18
</em>$x instanceOf stdClass) {};
22
19
]]>
Original file line number Diff line number Diff line change 10
10
$a = (null !== $extra);
11
11
]]>
12
12
</code >
13
- <code title =" Invalid: spaces on the inside of a set of arbitrary parentheses." >
13
+ <code title =" Invalid: spaces or new lines on the inside of a set of arbitrary parentheses." >
14
14
<![CDATA[
15
15
$a = ( null !== $extra );
16
- ]]>
17
- </code >
18
- <code title =" Invalid: new lines on the inside of a set of arbitrary parentheses." >
19
- <![CDATA[
16
+
20
17
$a = (
21
18
null !== $extra
22
19
);
You can’t perform that action at this time.
0 commit comments