Skip to content

Commit ed0106e

Browse files
committed
Add rector rules
1 parent 80b7897 commit ed0106e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

rector.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,18 @@
1313
])
1414
->withPhpSets()
1515
->withPreparedSets(
16-
codeQuality: true,
1716
deadCode: true,
17+
codeQuality: true,
1818
typeDeclarations: true,
19-
# typeDeclarationDocblocks: true, # Adds some incorrect doc blocks in interface implementation
2019
privatization: true,
20+
# typeDeclarationDocblocks: true, # Adds some incorrect doc blocks in interface implementation
21+
instanceOf: true,
2122
earlyReturn: true,
2223
phpunitCodeQuality: true,
2324
)
2425
->withImportNames(importShortClasses: false, removeUnusedImports: true)
26+
->withAttributesSets(phpunit: true)
27+
->withComposerBased(phpunit: true)
28+
->withTreatClassesAsFinal()
29+
->withFluentCallNewLine()
2530
;

0 commit comments

Comments
 (0)