Back to Dolibarr

README

dev/tools/rector/README.md

23.0.2501 B
Original Source

Refactoring code with rector

Installation

Run in this folder

shell
cd dev/tools/rector

Install rector with composer

shell
composer install

Usage

To make changes (remove --dry-run for real run)
shell
cd dev/tools/rector
./vendor/bin/rector process --debug --dry-run
To make changes on a given directory
shell
cd dev/tools/rector
./vendor/bin/rector process --debug [--dry-run] [--clear-cache] ../../../htdocs/core/