File tree 1 file changed +44
-0
lines changed
src/Standards/Generic/Docs/CodeAnalysis
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ <documentation title =" Empty PHP Statement" >
2
+ <standard >
3
+ <![CDATA[
4
+ Empty PHP tags are not allowed.
5
+ ]]>
6
+ </standard >
7
+ <code_comparison >
8
+ <code title =" Valid: There is at least one statement inside the PHP tag pair." >
9
+ <![CDATA[
10
+ <?php <em>echo 'Hello World';</em> ?>
11
+ <?= <em>'Hello World';</em> ?>
12
+ ]]>
13
+ </code >
14
+ <code title =" Invalid: There is no statement inside the PHP tag pair." >
15
+ <![CDATA[
16
+ <?php <em>;</em> ?>
17
+ <?= <em></em> ?>
18
+ ]]>
19
+ </code >
20
+ </code_comparison >
21
+ <standard >
22
+ <![CDATA[
23
+ Superfluous semi-colons are not allowed.
24
+ ]]>
25
+ </standard >
26
+ <code_comparison >
27
+ <code title =" Valid: There is no superfluous semi-colon after a PHP statement." >
28
+ <![CDATA[
29
+ function_call()<em>;</em>
30
+ if (true) {
31
+ echo 'Hello World'<em>;</em>
32
+ }
33
+ ]]>
34
+ </code >
35
+ <code title =" Invalid: There are one or more superfluous semi-colons after a PHP statement." >
36
+ <![CDATA[
37
+ function_call()<em>;;;</em>
38
+ if (true) {
39
+ echo 'Hello World';
40
+ }<em>;</em>
41
+ ]]>
42
+ </code >
43
+ </code_comparison >
44
+ </documentation >
You can’t perform that action at this time.
0 commit comments