Skip to content

Commit e00bbb4

Browse files
dingo-djrfnl
authored andcommitted
[Documentation] PSR12 - Opening Brace Space (#171)
* Add the documentation for the PSR12 Opening Brace Space sniff
1 parent 958d8dd commit e00bbb4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<documentation title="Opening Brace Space">
2+
<standard>
3+
<![CDATA[
4+
The opening brace of an object-oriented construct must not be followed by a blank line.
5+
]]>
6+
</standard>
7+
<code_comparison>
8+
<code title="Valid: No blank lines after opening brace.">
9+
<![CDATA[
10+
class Foo
11+
{<em></em>
12+
public function bar()
13+
{
14+
// Method content.
15+
}
16+
}
17+
]]>
18+
</code>
19+
<code title="Invalid: Blank line after opening brace.">
20+
<![CDATA[
21+
class Foo
22+
{
23+
<em></em>
24+
public function bar()
25+
{
26+
// Method content.
27+
}
28+
}
29+
]]>
30+
</code>
31+
</code_comparison>
32+
</documentation>

0 commit comments

Comments
 (0)