Skip to content

Commit eda875d

Browse files
committed
Fixed bug #1022 : Duplicate spaces after opening bracket error with PSR2 standard
1 parent f7d8165 commit eda875d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CodeSniffer/Standards/PSR2/ruleset.xml

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
162162
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
163163
-->
164+
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace">
165+
<severity>0</severity>
166+
</rule>
164167
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace">
165168
<severity>0</severity>
166169
</rule>

package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
5151
-- Thanks to Derek Henderson for the patch
5252
- Fixed bug #1015 : The Squiz.Commenting.FunctionComment sniff doesn't allow description in @return tag
5353
-- Thanks to Alexander Obuhovich for the patch
54+
- Fixed bug #1022 : Duplicate spaces after opening bracket error with PSR2 standard
5455
- Fixed bug #1025 : Syntax error in JS file can cause undefined index for parenthesis_closer
5556
</notes>
5657
<contents>

0 commit comments

Comments
 (0)