Skip to content

Commit e26cc50

Browse files
committed
Merge branch 'feature/generic-fix-invalid-xml-docs-files' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents 62dd954 + e189e3a commit e26cc50

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ class Foo <em>{</em>
1515
<![CDATA[
1616
class Foo
1717
<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>
1826
}
1927
]]>
2028
</code>

src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@
1010
if (!<em> </em>$someVar || !<em> </em>$x instanceOf stdClass) {};
1111
]]>
1212
</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.">
1414
<![CDATA[
1515
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+
2017
if (!<em> </em>$someVar || !<em>
2118
</em>$x instanceOf stdClass) {};
2219
]]>

src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@
1010
$a = (null !== $extra);
1111
]]>
1212
</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.">
1414
<![CDATA[
1515
$a = ( null !== $extra );
16-
]]>
17-
</code>
18-
<code title="Invalid: new lines on the inside of a set of arbitrary parentheses.">
19-
<![CDATA[
16+
2017
$a = (
2118
null !== $extra
2219
);

0 commit comments

Comments
 (0)