Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation]: normalise indentation of CDATA tags in sniff documentation #365

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading