Skip to content

Commit de993ca

Browse files
committed
Docs: adjust code example for Squiz.WhiteSpace.MemberVarSpacing
- Add anonymous class assignment and missing semi-colons
1 parent 72dfff0 commit de993ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Standards/Squiz/Docs/WhiteSpace/MemberVarSpacingStandard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ trait MyTrait {
6262
<code_comparison>
6363
<code title="Valid: No blank lines between DocBlock and its property.">
6464
<![CDATA[
65-
new class {
65+
$anon = new class {
6666
6767
/**
6868
* The actions that this class can perform.
6969
*
7070
* @var array
7171
*/<em>
7272
</em> public $actions = array();
73-
}
73+
};
7474
]]>
7575
</code>
7676
<code title="Invalid: Blank line(s) between DocBlock and its property.">
7777
<![CDATA[
78-
new class {
78+
$anon = new class {
7979
8080
/**
8181
* The actions that this class can perform.
@@ -84,7 +84,7 @@ new class {
8484
*/<em>
8585
8686
</em> public $actions = array();
87-
}
87+
};
8888
]]>
8989
</code>
9090
</code_comparison>

0 commit comments

Comments
 (0)