Skip to content

Commit 82d6176

Browse files
committed
Added SpaceAfterNotSniff to phpcs.xml
1 parent a10f00d commit 82d6176

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyAndConstantSpacing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function process(File $phpcsFile, $pointer): int
8181
}
8282

8383
$fix = $this->addError($phpcsFile, $pointer, $minExpectedLines, $maxExpectedLines, $linesBetween);
84-
if (! $fix) {
84+
if (!$fix) {
8585
return $firstOnLinePointer;
8686
}
8787

build/phpcs.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
</rule>
2525

2626
<rule ref="Generic.Commenting.Todo"/>
27+
<rule ref="Generic.Formatting.SpaceAfterNot">
28+
<properties>
29+
<property name="spacing" value="0"/>
30+
</properties>
31+
</rule>
2732
<rule ref="Squiz.PHP.CommentedOutCode">
2833
<properties>
2934
<property name="maxPercentage" value="50"/>

0 commit comments

Comments
 (0)