mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-24 12:03:17 +02:00
Adopt Rector as a require-dev tool alongside PHPStan/phpcs for safe, mechanical refactoring: - src/composer.json: add rector/rector ^2.0 (require-dev) + refactor/refactor:dry composer scripts. - build/rector.php: narrowly-scoped config over the PSR-4 class trees (Core/Domain/Cli/Infrastructure). Skips the \TMDB lib, the streaming hot-path, vendor, tmp/backups. Import-adding stays OFF (the check-procedural-use gate relies on positional use imports). Behaviour-changing rules are disabled (SafeDeclareStrictTypes, UseIdenticalOverEqualWithSameType); only the safe deadCode + codeQuality prepared sets run (incl. the empty-if/else collapse). - Makefile: `make rector` (dry-run, non-zero on pending changes) and `make rector-fix` (apply). Both require dev-tools. - docs/en/guides/refactoring.md + dev-workflow.md + mkdocs.yml nav: the detect -> diff -> verify -> apply workflow. No source code is changed by this commit — scaffolding only. `make rector-fix` output will be reviewed separately.