Skip to content

Commit

Permalink
Merge pull request #175 from rodrigoprimo/php-syntax-documentation
Browse files Browse the repository at this point in the history
Generic/PHP/Syntax: add XML documentation
  • Loading branch information
jrfnl authored Jan 2, 2024
2 parents d180eb0 + 2245a6b commit fad8ffe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Standards/Generic/Docs/PHP/SyntaxStandard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<documentation title="PHP Syntax">
<standard>
<![CDATA[
The code should use valid PHP syntax.
]]>
</standard>
<code_comparison>
<code title="Valid: No PHP syntax errors.">
<![CDATA[
<em>echo "Hello!";</em>
<em>$array = [1, 2, 3];</em>
]]>
</code>
<code title="Invalid: Code contains PHP syntax errors.">
<![CDATA[
echo "Hello!"<em></em> // Missing semicolon.
$array = [1, 2, 3<em></em>; // Missing closing bracket.
]]>
</code>
</code_comparison>
</documentation>

0 comments on commit fad8ffe

Please sign in to comment.