forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
215 lines (215 loc) · 11.6 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"name": "rector/rector",
"description": "Instant upgrade and refactoring of your PHP code",
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
"homepage": "https://getrector.org",
"license": "MIT",
"authors": [
{ "name": "Tomas Votruba", "email": "[email protected]", "homepage": "https://tomasvotruba.com" },
{ "name": "Jan Mikes", "email": "[email protected]", "homepage": "https://janmikes.cz" }
],
"bin": ["bin/rector"],
"require": {
"php": "^7.1",
"composer/xdebug-handler": "^1.3",
"doctrine/annotations": "^1.6",
"doctrine/inflector": "^1.3",
"jean85/pretty-package-versions": "^1.2",
"nette/robot-loader": "^3.1",
"nette/utils": "^2.5|^3.0",
"nikic/php-parser": "^4.2.4",
"ondram/ci-detector": "^3.1",
"phpstan/phpdoc-parser": "^0.3.5",
"phpstan/phpstan": "^0.11.13",
"phpstan/phpstan-phpunit": "^0.11.2",
"sebastian/diff": "^3.0",
"symfony/console": "^3.4|^4.2",
"symfony/dependency-injection": "^3.4|^4.2",
"symfony/finder": "^3.4|^4.2",
"symfony/process": "^3.4|^4.2",
"symplify/package-builder": "^6.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"jetbrains/phpstorm-stubs": "^2019.1",
"mockery/mockery": "^1.2",
"ocramius/package-versions": "^1.4",
"phpunit/phpunit": "^7.5|^8.0",
"symplify/changelog-linker": "^6.1",
"symplify/easy-coding-standard": "^6.1",
"symplify/monorepo-builder": "^6.1",
"symplify/phpstan-extensions": "^6.1",
"thecodingmachine/phpstan-strict-rules": "^0.11",
"tracy/tracy": "^2.5"
},
"autoload": {
"psr-4": {
"Rector\\": "src",
"Rector\\Autodiscovery\\": "packages/Autodiscovery/src",
"Rector\\Architecture\\": "packages/Architecture/src",
"Rector\\BetterPhpDocParser\\": "packages/BetterPhpDocParser/src",
"Rector\\CakePHP\\": "packages/CakePHP/src",
"Rector\\Celebrity\\": "packages/Celebrity/src",
"Rector\\CodeQuality\\": "packages/CodeQuality/src",
"Rector\\CodingStyle\\": "packages/CodingStyle/src",
"Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src",
"Rector\\DeadCode\\": "packages/DeadCode/src",
"Rector\\Doctrine\\": "packages/Doctrine/src",
"Rector\\DoctrineCodeQuality\\": "packages/DoctrineCodeQuality/src",
"Rector\\ElasticSearchDSL\\": "packages/ElasticSearchDSL/src",
"Rector\\FileSystemRector\\": "packages/FileSystemRector/src",
"Rector\\Guzzle\\": "packages/Guzzle/src",
"Rector\\Laravel\\": "packages/Laravel/src",
"Rector\\Legacy\\": "packages/Legacy/src",
"Rector\\MysqlToMysqli\\": "packages/MysqlToMysqli/src",
"Rector\\NetteTesterToPHPUnit\\": "packages/NetteTesterToPHPUnit/src",
"Rector\\NetteToSymfony\\": "packages/NetteToSymfony/src",
"Rector\\Nette\\": "packages/Nette/src",
"Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src",
"Rector\\PHPStan\\": "packages/PHPStan/src",
"Rector\\PHPUnitSymfony\\": "packages/PHPUnitSymfony/src",
"Rector\\PHPUnit\\": "packages/PHPUnit/src",
"Rector\\PSR4\\": "packages/PSR4/src",
"Rector\\PhpSpecToPHPUnit\\": "packages/PhpSpecToPHPUnit/src",
"Rector\\Php52\\": "packages/Php52/src",
"Rector\\Php53\\": "packages/Php53/src",
"Rector\\Php54\\": "packages/Php54/src",
"Rector\\Php55\\": "packages/Php55/src",
"Rector\\Php56\\": "packages/Php56/src",
"Rector\\Php70\\": "packages/Php70/src",
"Rector\\Php71\\": "packages/Php71/src",
"Rector\\Php72\\": "packages/Php72/src",
"Rector\\Php73\\": "packages/Php73/src",
"Rector\\Php74\\": "packages/Php74/src",
"Rector\\RemovingStatic\\": "packages/RemovingStatic/src",
"Rector\\Renaming\\": "packages/Renaming/src",
"Rector\\Restoration\\": "packages/Restoration/src",
"Rector\\Refactoring\\": "packages/Refactoring/src",
"Rector\\SOLID\\": "packages/SOLID/src",
"Rector\\Sensio\\": "packages/Sensio/src",
"Rector\\Shopware\\": "packages/Shopware/src",
"Rector\\Silverstripe\\": "packages/Silverstripe/src",
"Rector\\Sylius\\": "packages/Sylius/src",
"Rector\\SymfonyCodeQuality\\": "packages/SymfonyCodeQuality/src",
"Rector\\SymfonyPHPUnit\\": "packages/SymfonyPHPUnit/src",
"Rector\\Symfony\\": "packages/Symfony/src",
"Rector\\Twig\\": "packages/Twig/src",
"Rector\\TypeDeclaration\\": "packages/TypeDeclaration/src",
"Rector\\ZendToSymfony\\": "packages/ZendToSymfony/src",
"Rector\\Utils\\DocumentationGenerator\\": "utils/DocumentationGenerator/src",
"Rector\\Utils\\RectorGenerator\\": "utils/RectorGenerator/src",
"Rector\\StrictCodeQuality\\": "packages/StrictCodeQuality/src"
}
},
"autoload-dev": {
"psr-4": {
"Rector\\Tests\\": "tests",
"Rector\\Autodiscovery\\Tests\\": "packages/Autodiscovery/tests",
"Rector\\Architecture\\Tests\\": "packages/Architecture/tests",
"Rector\\BetterPhpDocParser\\Tests\\": "packages/BetterPhpDocParser/tests",
"Rector\\CakePHP\\Tests\\": "packages/CakePHP/tests",
"Rector\\Celebrity\\Tests\\": "packages/Celebrity/tests",
"Rector\\CodeQuality\\Tests\\": "packages/CodeQuality/tests",
"Rector\\CodingStyle\\Tests\\": "packages/CodingStyle/tests",
"Rector\\DeadCode\\Tests\\": "packages/DeadCode/tests",
"Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests",
"Rector\\DoctrineCodeQuality\\Tests\\": "packages/DoctrineCodeQuality/tests",
"Rector\\ElasticSearchDSL\\Tests\\": "packages/ElasticSearchDSL/tests",
"Rector\\Guzzle\\Tests\\": "packages/Guzzle/tests",
"Rector\\Laravel\\Tests\\": "packages/Laravel/tests",
"Rector\\Legacy\\Tests\\": "packages/Legacy/tests",
"Rector\\MysqlToMysqli\\Tests\\": "packages/MysqlToMysqli/tests",
"Rector\\NetteTesterToPHPUnit\\Tests\\": "packages/NetteTesterToPHPUnit/tests",
"Rector\\NetteToSymfony\\Tests\\": "packages/NetteToSymfony/tests",
"Rector\\Nette\\Tests\\": "packages/Nette/tests",
"Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests",
"Rector\\PHPStanExtensions\\": "utils/PHPStanExtensions/src",
"Rector\\PHPStan\\Tests\\": "packages/PHPStan/tests",
"Rector\\PHPUnitSymfony\\Tests\\": "packages/PHPUnitSymfony/tests",
"Rector\\PHPUnit\\Tests\\": "packages/PHPUnit/tests",
"Rector\\PSR4\\Tests\\": "packages/PSR4/tests",
"Rector\\PhpSpecToPHPUnit\\Tests\\": "packages/PhpSpecToPHPUnit/tests",
"Rector\\Php52\\Tests\\": "packages/Php52/tests",
"Rector\\Php53\\Tests\\": "packages/Php53/tests",
"Rector\\Php54\\Tests\\": "packages/Php54/tests",
"Rector\\Php55\\Tests\\": "packages/Php55/tests",
"Rector\\Php56\\Tests\\": "packages/Php56/tests",
"Rector\\Php70\\Tests\\": "packages/Php70/tests",
"Rector\\Php71\\Tests\\": "packages/Php71/tests",
"Rector\\Php72\\Tests\\": "packages/Php72/tests",
"Rector\\Php73\\Tests\\": "packages/Php73/tests",
"Rector\\Php74\\Tests\\": "packages/Php74/tests",
"Rector\\RemovingStatic\\Tests\\": "packages/RemovingStatic/tests",
"Rector\\Renaming\\Tests\\": "packages/Renaming/tests",
"Rector\\Restoration\\Tests\\": "packages/Restoration/tests",
"Rector\\SOLID\\Tests\\": "packages/SOLID/tests",
"Rector\\Sensio\\Tests\\": "packages/Sensio/tests",
"Rector\\Shopware\\Tests\\": "packages/Shopware/tests",
"Rector\\Silverstripe\\Tests\\": "packages/Silverstripe/tests",
"Rector\\Sylius\\Tests\\": "packages/Sylius/tests",
"Rector\\SymfonyCodeQuality\\Tests\\": "packages/SymfonyCodeQuality/tests",
"Rector\\SymfonyPHPUnit\\Tests\\": "packages/SymfonyPHPUnit/tests",
"Rector\\Symfony\\Tests\\": "packages/Symfony/tests",
"Rector\\Twig\\Tests\\": "packages/Twig/tests",
"Rector\\TypeDeclaration\\Tests\\": "packages/TypeDeclaration/tests",
"Rector\\ZendToSymfony\\Tests\\": "packages/ZendToSymfony/tests",
"Rector\\StrictCodeQuality\\Tests\\": "packages/StrictCodeQuality/tests"
},
"classmap": [
"packages/Symfony/tests/Rector/FrameworkBundle/AbstractToConstructorInjectionRectorSource",
"packages/Symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/Source",
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/ParamTypeResolver/Source",
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/PropertyTypeResolver/Source",
"tests/Source",
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source",
"tests/Issues/Issue1243/Source",
"packages/Autodiscovery/tests/Rector/FileSystem/MoveInterfacesToContractNamespaceDirectoryRector/Expected",
"packages/Autodiscovery/tests/Rector/FileSystem/MoveServicesBySuffixToDirectoryRector/Expected"
],
"files": [
"packages/DeadCode/tests/Rector/MethodCall/RemoveDefaultArgumentValueRector/Source/UserDefined.php",
"packages/TypeDeclaration/tests/Rector/Property/CompleteVarDocTypePropertyRector/Source/EventDispatcher.php",
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source/ChangeMeAnotherNamespace.php",
"packages/TypeDeclaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/Twig_Extension_Sandbox.php",
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/TwigFilter.php",
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/Manual_Twig_Filter.php",
"packages/SOLID/tests/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector/Source/Apple.php"
]
},
"scripts": {
"complete-check": [
"@check-cs",
"phpunit",
"@phpstan",
"@docs"
],
"check-cs": "vendor/bin/ecs check bin packages src tests utils --ansi",
"fix-cs": [
"vendor/bin/ecs check bin packages src tests utils --fix --ansi",
"bin/clean_trailing_spaces.sh"
],
"phpstan": "vendor/bin/phpstan analyse packages src tests --error-format symplify --ansi",
"changelog": [
"vendor/bin/changelog-linker dump-merges --in-categories",
"vendor/bin/changelog-linker link",
"vendor/bin/changelog-linker cleanup"
],
"docs": [
"bin/rector dump-rectors -o markdown > docs/AllRectorsOverview.md",
"bin/rector dump-nodes -o markdown > docs/NodesOverview.md"
]
},
"scripts-descriptions": {
"docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "0.6-dev"
}
}
}