dolibarr/dev/tools/rector
2023-12-04 11:21:01 +01:00
..
src/Renaming Fix with php-cs-fixer 2023-12-04 11:21:01 +01:00
.gitignore Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
composer.json Add Rector (automatic refactoring) 2023-10-08 20:25:46 +02:00
composer.lock Add Rector (automatic refactoring) 2023-10-08 20:25:46 +02:00
README.md Debug php-cs-fixer 2023-12-03 21:03:18 +01:00
rector.php Fix warning 2023-11-27 12:24:18 +01:00

Refactoring code with rector

Installation

Run in this folder

cd dev/tools/rector

Install rector with composer

composer install

Usage

To make changes (Add --dry-run for test mode only)
./vendor/bin/rector process --dry-run
To make changes on a given directory
./vendor/bin/rector process [--dry-run] [--clear-cache] ../../../htdocs/core/