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 93e5c44Copy full SHA for 93e5c44
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
+<em>echo "Hello!";</em>
11
+<em>$array = [1, 2, 3];</em>
12
13
+ </code>
14
+ <code title="Invalid: Code contains PHP syntax errors.">
15
16
+echo "Hello!"<em></em> // Missing semicolon at the end
17
+$array = [1, 2, 3<em></em>; // Missing closing bracket
18
19
20
+ </code_comparison>
21
+</documentation>
0 commit comments