2017-07-15 17:01:21 +00:00
|
|
|
{
|
|
|
|
"name": "rector/rector",
|
2018-12-08 22:13:44 +00:00
|
|
|
"description": "Instant upgrade and refactoring of your PHP code",
|
|
|
|
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
|
2017-07-15 17:01:21 +00:00
|
|
|
"license": "MIT",
|
2019-02-11 23:53:16 +00:00
|
|
|
"bin": ["bin/rector"],
|
2017-07-15 17:01:21 +00:00
|
|
|
"require": {
|
|
|
|
"php": "^7.1",
|
2018-11-06 22:12:02 +00:00
|
|
|
"composer/xdebug-handler": "^1.3",
|
2018-09-08 09:23:42 +00:00
|
|
|
"jean85/pretty-package-versions": "^1.2",
|
|
|
|
"nette/robot-loader": "^3.1",
|
2018-02-22 16:11:58 +00:00
|
|
|
"nette/utils": "^2.5",
|
2019-02-16 22:25:12 +00:00
|
|
|
"nikic/php-parser": "^4.2.1",
|
2019-03-10 23:47:43 +00:00
|
|
|
"phpstan/phpstan": "0.11.3",
|
2018-02-05 13:59:07 +00:00
|
|
|
"sebastian/diff": "^3.0",
|
2019-01-19 15:58:51 +00:00
|
|
|
"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",
|
2019-02-16 22:25:49 +00:00
|
|
|
"symplify/package-builder": "^5.4.6"
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2018-11-30 16:39:01 +00:00
|
|
|
"ocramius/package-versions": "^1.3",
|
2019-02-06 10:48:24 +00:00
|
|
|
"phpunit/phpunit": "^7.5|^8.0",
|
2019-02-16 22:25:49 +00:00
|
|
|
"symplify/easy-coding-standard": "^5.4.6",
|
2019-01-08 18:07:25 +00:00
|
|
|
"friendsofphp/php-cs-fixer": "^2.14",
|
2019-02-16 22:25:49 +00:00
|
|
|
"symplify/monorepo-builder": "^5.4.6",
|
|
|
|
"symplify/phpstan-extensions": "^5.4.6",
|
2019-01-19 15:58:51 +00:00
|
|
|
"thecodingmachine/phpstan-strict-rules": "^0.11.0",
|
2018-08-20 19:14:50 +00:00
|
|
|
"tracy/tracy": "^2.5"
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\": "src",
|
2019-02-21 14:09:07 +00:00
|
|
|
"Rector\\Celebrity\\": "packages/Celebrity/src",
|
2019-02-28 21:50:53 +00:00
|
|
|
"Rector\\BetterPhpDocParser\\": "packages/BetterPhpDocParser/src",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src",
|
|
|
|
"Rector\\CodingStyle\\": "packages/CodingStyle/src",
|
|
|
|
"Rector\\DeadCode\\": "packages/DeadCode/src",
|
|
|
|
"Rector\\Guzzle\\": "packages/Guzzle/src",
|
|
|
|
"Rector\\CodeQuality\\": "packages/CodeQuality/src",
|
2019-01-31 20:39:51 +00:00
|
|
|
"Rector\\NetteToSymfony\\": "packages/NetteToSymfony/src",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\DomainDrivenDesign\\": "packages/DomainDrivenDesign/src",
|
|
|
|
"Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src",
|
|
|
|
"Rector\\Symfony\\": "packages/Symfony/src",
|
|
|
|
"Rector\\CakePHP\\": "packages/CakePHP/src",
|
|
|
|
"Rector\\Php\\": "packages/Php/src",
|
|
|
|
"Rector\\Jms\\": "packages/Jms/src",
|
|
|
|
"Rector\\Silverstripe\\": "packages/Silverstripe/src",
|
|
|
|
"Rector\\Sensio\\": "packages/Sensio/src",
|
|
|
|
"Rector\\Sylius\\": "packages/Sylius/src",
|
|
|
|
"Rector\\PHPStan\\": "packages/PHPStan/src",
|
|
|
|
"Rector\\PHPUnit\\": "packages/PHPUnit/src",
|
|
|
|
"Rector\\Twig\\": "packages/Twig/src",
|
2019-02-19 15:05:34 +00:00
|
|
|
"Rector\\MysqlToMysqli\\": "packages/MysqlToMysqli/src",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\PhpParser\\": "packages/PhpParser/src",
|
|
|
|
"Rector\\Doctrine\\": "packages/Doctrine/src",
|
2019-02-21 14:36:16 +00:00
|
|
|
"Rector\\FileSystemRector\\": "packages/FileSystemRector/src",
|
2019-03-03 21:00:02 +00:00
|
|
|
"Rector\\ContributorTools\\": "packages/ContributorTools/src",
|
2019-03-15 10:53:06 +00:00
|
|
|
"Rector\\Laravel\\": "packages/Laravel/src",
|
2019-03-15 15:36:00 +00:00
|
|
|
"Rector\\PhpSpecToPHPUnit\\": "packages/PhpSpecToPHPUnit/src",
|
|
|
|
"Rector\\Shopware\\": "packages/Shopware/src"
|
2018-08-15 09:10:45 +00:00
|
|
|
}
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
2019-02-21 14:09:07 +00:00
|
|
|
"Rector\\Celebrity\\Tests\\": "packages/Celebrity/tests",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\Tests\\": "tests",
|
2019-02-28 21:50:53 +00:00
|
|
|
"Rector\\BetterPhpDocParser\\Tests\\": "packages/BetterPhpDocParser/tests",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests",
|
|
|
|
"Rector\\CakePHP\\Tests\\": "packages/CakePHP/tests",
|
|
|
|
"Rector\\CodeQuality\\Tests\\": "packages/CodeQuality/tests",
|
|
|
|
"Rector\\DeadCode\\Tests\\": "packages/DeadCode/tests",
|
2019-01-31 20:39:51 +00:00
|
|
|
"Rector\\NetteToSymfony\\Tests\\": "packages/NetteToSymfony/tests",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\CodingStyle\\Tests\\": "packages/CodingStyle/tests",
|
|
|
|
"Rector\\DomainDrivenDesign\\Tests\\": "packages/DomainDrivenDesign/tests",
|
|
|
|
"Rector\\Guzzle\\Tests\\": "packages/Guzzle/tests",
|
|
|
|
"Rector\\Php\\Tests\\": "packages/Php/tests",
|
|
|
|
"Rector\\Jms\\Tests\\": "packages/Jms/tests",
|
|
|
|
"Rector\\Symfony\\Tests\\": "packages/Symfony/tests",
|
|
|
|
"Rector\\Silverstripe\\Tests\\": "packages/Silverstripe/tests",
|
|
|
|
"Rector\\Sensio\\Tests\\": "packages/Sensio/tests",
|
|
|
|
"Rector\\Sylius\\Tests\\": "packages/Sylius/tests",
|
|
|
|
"Rector\\PHPStan\\Tests\\": "packages/PHPStan/tests",
|
|
|
|
"Rector\\PHPUnit\\Tests\\": "packages/PHPUnit/tests",
|
|
|
|
"Rector\\PhpParser\\Tests\\": "packages/PhpParser/tests",
|
|
|
|
"Rector\\Twig\\Tests\\": "packages/Twig/tests",
|
2019-02-19 15:09:53 +00:00
|
|
|
"Rector\\MysqlToMysqli\\Tests\\": "packages/MysqlToMysqli/tests",
|
2018-12-26 00:26:19 +00:00
|
|
|
"Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests",
|
2019-03-03 21:00:02 +00:00
|
|
|
"Rector\\Laravel\\Tests\\": "packages/Laravel/tests",
|
2019-03-15 10:53:06 +00:00
|
|
|
"Rector\\PhpSpecToPHPUnit\\Tests\\": "packages/PhpSpecToPHPUnit/tests",
|
2019-03-15 15:36:00 +00:00
|
|
|
"Rector\\PHPStanExtensions\\": "utils/PHPStanExtensions/src",
|
|
|
|
"Rector\\Shopware\\Tests\\": "packages/Shopware/tests"
|
2018-05-30 09:29:21 +00:00
|
|
|
},
|
2018-05-30 12:59:09 +00:00
|
|
|
"classmap": [
|
2018-10-23 18:06:06 +00:00
|
|
|
"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",
|
2018-10-03 16:50:07 +00:00
|
|
|
"tests/Source",
|
2018-10-21 18:04:45 +00:00
|
|
|
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
|
|
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source"
|
2018-05-30 12:59:09 +00:00
|
|
|
]
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
2018-11-30 16:16:16 +00:00
|
|
|
"suggest": {
|
|
|
|
"symplify/easy-coding-standard": "Required to enable '--with-style' option. Use in case you don't have PHP_CodeSniffer or PHP-CS-Fixer yet."
|
|
|
|
},
|
2017-07-15 17:01:21 +00:00
|
|
|
"scripts": {
|
2018-12-26 00:26:19 +00:00
|
|
|
"complete-check": ["@check-cs", "phpunit", "@phpstan", "@update-docs"],
|
2019-01-25 15:06:35 +00:00
|
|
|
"check-cs": "vendor/bin/ecs check bin packages src tests utils",
|
2017-12-30 17:41:49 +00:00
|
|
|
"fix-cs": [
|
2019-01-25 15:06:35 +00:00
|
|
|
"vendor/bin/ecs check bin packages src tests utils --fix",
|
2018-08-16 14:48:59 +00:00
|
|
|
"bin/clean_trailing_spaces.sh"
|
2017-12-30 17:41:49 +00:00
|
|
|
],
|
2019-02-10 11:57:39 +00:00
|
|
|
"phpstan": "vendor/bin/phpstan analyse packages src tests --error-format symplify",
|
2019-02-22 23:49:04 +00:00
|
|
|
"docs": [
|
|
|
|
"bin/rector dump-rectors -o markdown > docs/AllRectorsOverview.md",
|
|
|
|
"bin/rector dump-nodes -o markdown > docs/NodesOverview.md"
|
|
|
|
]
|
2017-08-19 23:46:12 +00:00
|
|
|
},
|
2018-09-29 08:10:46 +00:00
|
|
|
"scripts-descriptions": {
|
2018-10-25 20:27:56 +00:00
|
|
|
"update-docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
|
2018-09-29 08:10:46 +00:00
|
|
|
},
|
2017-08-19 23:46:12 +00:00
|
|
|
"config": {
|
|
|
|
"sort-packages": true
|
2019-02-16 22:27:37 +00:00
|
|
|
}
|
2017-07-15 17:01:21 +00:00
|
|
|
}
|