Skip to content

Commit dd15930

Browse files
Tweaks
1 parent 1ea7143 commit dd15930

File tree

3 files changed

+60
-35
lines changed

3 files changed

+60
-35
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
/psalm.xml export-ignore
1616
/CHANGELOG.md export-ignore
1717
/README.md export-ignore
18-
/rector.yaml export-ignore
18+
/rector.yml export-ignore

rector.yaml

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

rector.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
parameters:
2+
autoload_paths:
3+
- 'vendor/autoload.php'
4+
- 'vendor-bin/phpunit/vendor/autoload.php'
5+
auto_import_names: true
6+
import_short_classes: false
7+
import_doc_blocks: false
8+
php_version_features: '7.1'
9+
paths:
10+
- 'src'
11+
- 'tests'
12+
sets:
13+
- 'code-quality'
14+
- 'php52'
15+
- 'php53'
16+
- 'php54'
17+
- 'php55'
18+
- 'php56'
19+
- 'php70'
20+
- 'php71'
21+
- 'phpunit40'
22+
- 'phpunit50'
23+
- 'phpunit60'
24+
- 'phpunit70'
25+
- 'phpunit75'
26+
27+
services:
28+
Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector: ~
29+
Rector\DeadCode\Rector\BooleanAnd\RemoveAndTrueRector: ~
30+
Rector\DeadCode\Rector\Assign\RemoveAssignOfVoidReturnFunctionRector: ~
31+
Rector\DeadCode\Rector\FunctionLike\RemoveCodeAfterReturnRector: ~
32+
Rector\DeadCode\Rector\For_\RemoveDeadIfForeachForRector: ~
33+
Rector\DeadCode\Rector\FunctionLike\RemoveDeadReturnRector: ~
34+
Rector\DeadCode\Rector\Stmt\RemoveDeadStmtRector: ~
35+
Rector\DeadCode\Rector\TryCatch\RemoveDeadTryCatchRector: ~
36+
Rector\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector: ~
37+
Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector: ~
38+
Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector: ~
39+
Rector\DeadCode\Rector\Switch_\RemoveDuplicatedCaseInSwitchRector: ~
40+
Rector\DeadCode\Rector\FunctionLike\RemoveDuplicatedIfReturnRector: ~
41+
Rector\DeadCode\Rector\Instanceof_\RemoveDuplicatedInstanceOfRector: ~
42+
Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector: ~
43+
Rector\DeadCode\Rector\ClassConst\RemoveUnusedClassConstantRector: ~
44+
Rector\DeadCode\Rector\Foreach_\RemoveUnusedForeachKeyRector: ~
45+
Rector\DeadCode\Rector\If_\RemoveUnusedNonEmptyArrayBeforeForeachRector: ~
46+
Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateConstantRector: ~
47+
Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector: ~
48+
Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector: ~
49+
Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector: ~
50+
Rector\DeadCode\Rector\If_\SimplifyIfElseWithSameContentRector: ~
51+
Rector\DeadCode\Rector\Expression\SimplifyMirrorAssignRector: ~
52+
Rector\DeadCode\Rector\Ternary\TernaryToBooleanOrFalseToBooleanAndRector: ~
53+
Rector\Performance\Rector\FuncCall\PreslashSimpleFunctionRector: ~
54+
Rector\SOLID\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector: ~
55+
Rector\SOLID\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector: ~
56+
Rector\SOLID\Rector\If_\ChangeNestedIfsToEarlyReturnRector: ~
57+
Rector\SOLID\Rector\If_\RemoveAlwaysElseRector: ~
58+
Rector\SOLID\Rector\Property\ChangeReadOnlyPropertyWithDefaultValueToConstantRector: ~
59+
Rector\SOLID\Rector\ClassMethod\ChangeReadOnlyVariableWithDefaultValueToConstantRector: ~

0 commit comments

Comments
 (0)