We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb53ae commit 8d08d41Copy full SHA for 8d08d41
src/Standards/Generic/Docs/PHP/SyntaxStandard.xml
@@ -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
10
+echo "Hello!";
11
+$array = [1, 2, 3];
12
13
+ </code>
14
+ <code title="Invalid: Code contains PHP syntax errors.">
15
16
+echo "Hello!" // Missing semicolon at the end
17
+$array = [1, 2, 3; // Missing closing bracket
18
19
20
+ </code_comparison>
21
+</documentation>
0 commit comments