Skip to content

Commit 290248b

Browse files
📦 Start using some PSR12 rules
1 parent 566ff06 commit 290248b

9 files changed

+5
-269
lines changed

SymfonyCustom/Sniffs/Namespaces/UseWithoutStartingBackslashSniff.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

SymfonyCustom/Sniffs/Objects/ObjectInstantiationSniff.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

SymfonyCustom/Tests/Namespaces/UseWithoutStartingBackslashUnitTest.inc

Lines changed: 0 additions & 18 deletions
This file was deleted.

SymfonyCustom/Tests/Namespaces/UseWithoutStartingBackslashUnitTest.inc.fixed

Lines changed: 0 additions & 18 deletions
This file was deleted.

SymfonyCustom/Tests/Namespaces/UseWithoutStartingBackslashUnitTest.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

SymfonyCustom/Tests/Objects/ObjectInstantiationUnitTest.inc

Lines changed: 0 additions & 31 deletions
This file was deleted.

SymfonyCustom/Tests/Objects/ObjectInstantiationUnitTest.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

SymfonyCustom/Tests/PHP/DiscourageEmptyUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace SymfonyCustom\Tests\Objects;
5+
namespace SymfonyCustom\Tests\PHP;
66

77
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
88

SymfonyCustom/ruleset.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
</rule>
111111
<rule ref="Squiz.Strings.EchoedStrings"/>
112112

113+
<!-- Starting PSR12 integration -->
114+
<rule ref="PSR12.Classes.ClassInstantiation"/>
115+
<rule ref="PSR12.Files.ImportStatement"/>
116+
113117
<!-- Custom -->
114118
<rule ref="SymfonyCustom.Commenting.FunctionComment">
115119
<exclude name="SymfonyCustom.Commenting.FunctionComment.MissingParamComment"/>

0 commit comments

Comments
 (0)