Skip to content

Commit 631466b

Browse files
authored
Merge pull request #365 from jonmcp/docs/standardise-indentation
[Documentation]: normalise indentation of CDATA tags in sniff documentation
2 parents ff00a01 + 52ba611 commit 631466b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Standards/Generic/Docs/PHP/DisallowRequestSuperglobalStandard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<documentation title="$_REQUEST Superglobal">
22
<standard>
3-
<![CDATA[
3+
<![CDATA[
44
$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead.
55
]]>
66
</standard>

src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<documentation title="Nullable Type Declarations Functions">
22
<standard>
3-
<![CDATA[
3+
<![CDATA[
44
In nullable type declarations there MUST NOT be a space between the question mark and the type.
55
]]>
66
</standard>
77
<code_comparison>
88
<code title="Valid: no whitespace used.">
9-
<![CDATA[
9+
<![CDATA[
1010
public function functionName(
1111
?string $arg1,
1212
?int $arg2
@@ -26,14 +26,14 @@ public function functionName(
2626
</code_comparison>
2727
<code_comparison>
2828
<code title="Valid: no unexpected characters.">
29-
<![CDATA[
29+
<![CDATA[
3030
public function foo(?int $arg): ?string
3131
{
3232
}
3333
]]>
3434
</code>
3535
<code title="Invalid: unexpected characters used.">
36-
<![CDATA[
36+
<![CDATA[
3737
public function bar(? /* comment */ int $arg): ?
3838
// nullable for a reason
3939
string

0 commit comments

Comments
 (0)