Skip to content

Commit e66d021

Browse files
committed
Make Empty guidance third.
1 parent 53402a5 commit e66d021

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/Standards/Squiz/Docs/Commenting/BlockCommentStandard.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,27 @@
6060
</code_comparison>
6161
<standard>
6262
<![CDATA[
63+
A block comment should not be empty.
64+
]]>
65+
</standard>
66+
<code_comparison>
67+
<code title="Valid: A block comment with contents.">
68+
<![CDATA[
69+
/*
70+
A block comment.
71+
*/
72+
]]>
73+
</code>
74+
<code title="Invalid: An empty block comment.">
75+
<![CDATA[
76+
/*
77+
<em></em>
78+
*/
79+
]]>
80+
</code>
81+
</code_comparison>
82+
<standard>
83+
<![CDATA[
6384
If there are no asterisks at the start of each line, the contents of the docblock should be indented by at least 4 spaces.
6485
]]>
6586
</standard>
@@ -110,27 +131,6 @@
110131
</code_comparison>
111132
<standard>
112133
<![CDATA[
113-
A block comment should not be empty.
114-
]]>
115-
</standard>
116-
<code_comparison>
117-
<code title="Valid: A block comment with contents.">
118-
<![CDATA[
119-
/*
120-
A block comment.
121-
*/
122-
]]>
123-
</code>
124-
<code title="Invalid: An empty block comment.">
125-
<![CDATA[
126-
/*
127-
<em></em>
128-
*/
129-
]]>
130-
</code>
131-
</code_comparison>
132-
<standard>
133-
<![CDATA[
134134
Block comment text should start on a new line immediately after the opener.
135135
]]>
136136
</standard>

0 commit comments

Comments
 (0)