Skip to content

Commit

Permalink
Merge pull request squizlabs#365 from jonmcp/docs/standardise-indenta…
Browse files Browse the repository at this point in the history
…tion

[Documentation]: normalise indentation of CDATA tags in sniff documentation
  • Loading branch information
jrfnl authored Feb 27, 2024
2 parents ff00a01 + 52ba611 commit 631466b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<documentation title="$_REQUEST Superglobal">
<standard>
<![CDATA[
<![CDATA[
$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead.
]]>
</standard>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<documentation title="Nullable Type Declarations Functions">
<standard>
<![CDATA[
<![CDATA[
In nullable type declarations there MUST NOT be a space between the question mark and the type.
]]>
</standard>
<code_comparison>
<code title="Valid: no whitespace used.">
<![CDATA[
<![CDATA[
public function functionName(
?string $arg1,
?int $arg2
Expand All @@ -26,14 +26,14 @@ public function functionName(
</code_comparison>
<code_comparison>
<code title="Valid: no unexpected characters.">
<![CDATA[
<![CDATA[
public function foo(?int $arg): ?string
{
}
]]>
</code>
<code title="Invalid: unexpected characters used.">
<![CDATA[
<![CDATA[
public function bar(? /* comment */ int $arg): ?
// nullable for a reason
string
Expand Down

0 comments on commit 631466b

Please sign in to comment.