Skip to content

Commit 93e5c44

Browse files
committed
Generic/PHP/Syntax: add XML documentation
1 parent aeb53ae commit 93e5c44

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<documentation title="Syntax">
2+
<standard>
3+
<![CDATA[
4+
The code should use valid PHP syntax.
5+
]]>
6+
</standard>
7+
<code_comparison>
8+
<code title="Valid: No PHP syntax errors.">
9+
<![CDATA[
10+
<em>echo "Hello!";</em>
11+
<em>$array = [1, 2, 3];</em>
12+
]]>
13+
</code>
14+
<code title="Invalid: Code contains PHP syntax errors.">
15+
<![CDATA[
16+
echo "Hello!"<em></em> // Missing semicolon at the end
17+
$array = [1, 2, 3<em></em>; // Missing closing bracket
18+
]]>
19+
</code>
20+
</code_comparison>
21+
</documentation>

0 commit comments

Comments
 (0)