We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1d8ff7 + dfafcd5 commit 6f96ad8Copy full SHA for 6f96ad8
src/Standards/Squiz/Docs/PHP/HeredocStandard.xml
@@ -0,0 +1,32 @@
1
+<documentation title="Heredoc">
2
+ <standard>
3
+ <![CDATA[
4
+ Forbids the use of heredoc and nowdoc syntax.
5
+ ]]>
6
+ </standard>
7
+ <code_comparison>
8
+ <code title="Valid: Using standard strings or inline HTML.">
9
10
+$text = "some $text";
11
+
12
13
14
+?>
15
+some text
16
+<?php
17
18
19
+ </code>
20
+ <code title="Invalid: Using heredoc or nowdoc syntax.">
21
22
+$text = <em><<<EOD
23
+some $text
24
+EOD</em>;
25
26
+echo <em><<<'EOD'
27
28
29
30
31
+ </code_comparison>
32
+</documentation>
0 commit comments