From f7788af81b0fbcc1ee30a4d6c78cf95e43e5238d Mon Sep 17 00:00:00 2001 From: simba77 Date: Sun, 11 Feb 2024 10:48:57 +0300 Subject: [PATCH] Removed rector --- composer.json | 3 +- composer.lock | 125 +------------------------------------------------- rector.php | 29 ------------ 3 files changed, 2 insertions(+), 155 deletions(-) delete mode 100755 rector.php diff --git a/composer.json b/composer.json index 9cdc38dd4..b45d4fcf9 100644 --- a/composer.json +++ b/composer.json @@ -95,8 +95,7 @@ "roave/security-advisories": "dev-master", "squizlabs/php_codesniffer": "^3.7.1", "vimeo/psalm": "^4.24.0", - "doctrine/dbal": "^3.3.7", - "rector/rector": "^0.15.0" + "doctrine/dbal": "^3.3.7" }, "autoload": { "files": [ diff --git a/composer.lock b/composer.lock index 60633d278..d99bcb10b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bccb7ea28258f1f606b30cbdcea65363", + "content-hash": "3259100906365456cffca7f78ed334f4", "packages": [ { "name": "brick/math", @@ -7915,68 +7915,6 @@ }, "time": "2023-12-16T09:33:33+00:00" }, - { - "name": "phpstan/phpstan", - "version": "1.10.50", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/06a98513ac72c03e8366b5a0cb00750b487032e4", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0" - }, - "conflict": { - "phpstan/phpstan-shim": "*" - }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" - ], - "support": { - "docs": "https://phpstan.org/user-guide/getting-started", - "forum": "https://github.com/phpstan/phpstan/discussions", - "issues": "https://github.com/phpstan/phpstan/issues", - "security": "https://github.com/phpstan/phpstan/security/policy", - "source": "https://github.com/phpstan/phpstan-src" - }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" - } - ], - "time": "2023-12-13T10:59:42+00:00" - }, { "name": "phpunit/php-code-coverage", "version": "9.2.29", @@ -8448,67 +8386,6 @@ }, "time": "2021-02-03T23:26:27+00:00" }, - { - "name": "rector/rector", - "version": "0.15.25", - "source": { - "type": "git", - "url": "https://github.com/rectorphp/rector.git", - "reference": "015935c7ed9e48a4f5895ba974f337e20a263841" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/015935c7ed9e48a4f5895ba974f337e20a263841", - "reference": "015935c7ed9e48a4f5895ba974f337e20a263841", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.14" - }, - "conflict": { - "rector/rector-doctrine": "*", - "rector/rector-downgrade-php": "*", - "rector/rector-phpunit": "*", - "rector/rector-symfony": "*" - }, - "bin": [ - "bin/rector" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "0.15-dev" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Instant Upgrade and Automated Refactoring of any PHP code", - "keywords": [ - "automation", - "dev", - "migration", - "refactoring" - ], - "support": { - "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.15.25" - }, - "funding": [ - { - "url": "https://github.com/tomasvotruba", - "type": "github" - } - ], - "time": "2023-04-20T16:07:39+00:00" - }, { "name": "roave/security-advisories", "version": "dev-master", diff --git a/rector.php b/rector.php deleted file mode 100755 index 1a8907d2c..000000000 --- a/rector.php +++ /dev/null @@ -1,29 +0,0 @@ -paths( - [ - __DIR__ . '/config', - __DIR__ . '/modules', - __DIR__ . '/public', - __DIR__ . '/system', - __DIR__ . '/tests', - ] - ); - - // register a single rule - $rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class); - - // define sets of rules - $rectorConfig->sets( - [ - LevelSetList::UP_TO_PHP_80, - ] - ); -};