2017-07-15 19:01:21 +02:00
|
|
|
{
|
|
|
|
"name": "rector/rector",
|
2018-12-08 23:13:44 +01:00
|
|
|
"description": "Instant upgrade and refactoring of your PHP code",
|
|
|
|
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
|
2017-07-15 19:01:21 +02:00
|
|
|
"license": "MIT",
|
2019-02-12 00:53:16 +01:00
|
|
|
"bin": ["bin/rector"],
|
2017-07-15 19:01:21 +02:00
|
|
|
"require": {
|
|
|
|
"php": "^7.1",
|
2018-11-06 23:12:02 +01:00
|
|
|
"composer/xdebug-handler": "^1.3",
|
2018-09-08 11:23:42 +02:00
|
|
|
"jean85/pretty-package-versions": "^1.2",
|
|
|
|
"nette/robot-loader": "^3.1",
|
2018-02-22 17:11:58 +01:00
|
|
|
"nette/utils": "^2.5",
|
2019-02-16 23:25:12 +01:00
|
|
|
"nikic/php-parser": "^4.2.1",
|
2019-01-18 03:41:58 +01:00
|
|
|
"phpstan/phpstan": "^0.11",
|
2018-02-05 11:59:07 -02:00
|
|
|
"sebastian/diff": "^3.0",
|
2019-01-19 16:58:51 +01: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-12 00:53:16 +01:00
|
|
|
"symplify/better-phpdoc-parser": "^5.5",
|
|
|
|
"symplify/package-builder": "^5.5"
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2018-11-30 17:39:01 +01:00
|
|
|
"ocramius/package-versions": "^1.3",
|
2019-02-06 11:48:24 +01:00
|
|
|
"phpunit/phpunit": "^7.5|^8.0",
|
2019-02-12 00:53:16 +01:00
|
|
|
"symplify/easy-coding-standard": "^5.5",
|
2019-01-08 19:07:25 +01:00
|
|
|
"friendsofphp/php-cs-fixer": "^2.14",
|
2019-02-12 00:53:16 +01:00
|
|
|
"symplify/monorepo-builder": "^5.5",
|
|
|
|
"symplify/phpstan-extensions": "^5.5",
|
2019-01-19 16:58:51 +01:00
|
|
|
"thecodingmachine/phpstan-strict-rules": "^0.11.0",
|
2018-08-20 21:14:50 +02:00
|
|
|
"tracy/tracy": "^2.5"
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2018-12-26 01:26:19 +01:00
|
|
|
"Rector\\": "src",
|
|
|
|
"Rector\\ContributorTools\\": "packages/ContributorTools/src",
|
|
|
|
"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 21:39:51 +01:00
|
|
|
"Rector\\NetteToSymfony\\": "packages/NetteToSymfony/src",
|
2018-12-26 01:26:19 +01: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",
|
|
|
|
"Rector\\PhpParser\\": "packages/PhpParser/src",
|
|
|
|
"Rector\\Doctrine\\": "packages/Doctrine/src",
|
|
|
|
"Rector\\FileSystemRector\\": "packages/FileSystemRector/src"
|
2018-08-15 11:10:45 +02:00
|
|
|
}
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
2019-01-25 01:49:05 +01:00
|
|
|
"Rector\\PHPStanExtensions\\": "utils/phpstan/src",
|
2018-12-26 01:26:19 +01:00
|
|
|
"Rector\\Tests\\": "tests",
|
|
|
|
"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 21:39:51 +01:00
|
|
|
"Rector\\NetteToSymfony\\Tests\\": "packages/NetteToSymfony/tests",
|
2018-12-26 01:26:19 +01: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",
|
|
|
|
"Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests",
|
|
|
|
"Rector\\FileSystemRector\\Tests\\": "packages/FileSystemRector/tests"
|
2018-05-30 11:29:21 +02:00
|
|
|
},
|
2018-05-30 14:59:09 +02:00
|
|
|
"classmap": [
|
2018-12-03 22:42:57 +01:00
|
|
|
"examples",
|
2018-10-23 20:06:06 +02: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-04 00:50:07 +08:00
|
|
|
"tests/Source",
|
2018-10-21 20:04:45 +02:00
|
|
|
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
|
|
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source"
|
2018-05-30 14:59:09 +02:00
|
|
|
]
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
2018-11-30 17:16:16 +01: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 19:01:21 +02:00
|
|
|
"scripts": {
|
2018-12-26 01:26:19 +01:00
|
|
|
"complete-check": ["@check-cs", "phpunit", "@phpstan", "@update-docs"],
|
2019-01-25 16:06:35 +01:00
|
|
|
"check-cs": "vendor/bin/ecs check bin packages src tests utils",
|
2017-12-30 15:41:49 -02:00
|
|
|
"fix-cs": [
|
2019-01-25 16:06:35 +01:00
|
|
|
"vendor/bin/ecs check bin packages src tests utils --fix",
|
2018-08-16 16:48:59 +02:00
|
|
|
"bin/clean_trailing_spaces.sh"
|
2017-12-30 15:41:49 -02:00
|
|
|
],
|
2019-02-10 12:57:39 +01:00
|
|
|
"phpstan": "vendor/bin/phpstan analyse packages src tests --error-format symplify",
|
2019-02-04 00:45:32 +01:00
|
|
|
"docs": "bin/rector dump-rectors --output-format markdown > docs/AllRectorsOverview.md"
|
2017-08-20 01:46:12 +02:00
|
|
|
},
|
2018-09-29 16:10:46 +08:00
|
|
|
"scripts-descriptions": {
|
2018-10-25 22:27:56 +02:00
|
|
|
"update-docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
|
2018-09-29 16:10:46 +08:00
|
|
|
},
|
2017-08-20 01:46:12 +02:00
|
|
|
"config": {
|
|
|
|
"sort-packages": true
|
2019-02-12 00:53:16 +01:00
|
|
|
},
|
|
|
|
"prefer-stable": true,
|
|
|
|
"minimum-stability": "dev"
|
2017-07-15 19:01:21 +02:00
|
|
|
}
|