Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Go to file
2017-08-20 15:25:03 +02:00
bin cs fixes, drop duplicated NodeVisitor 2017-08-12 13:34:40 +02:00
packages/NodeTypeResolver drop EventDispatcher, add prioritied NodeTraversers 2017-08-20 15:25:03 +02:00
src drop EventDispatcher, add prioritied NodeTraversers 2017-08-20 15:25:03 +02:00
tests drop EventDispatcher, add prioritied NodeTraversers 2017-08-20 15:25:03 +02:00
.coveralls.yml init meta files 2017-07-15 19:12:04 +02:00
.gitignore init 2017-07-15 19:01:21 +02:00
.travis.yml simplify travis.yml 2017-08-15 15:19:34 +02:00
CODE_OF_CONDUCT.md init meta files 2017-07-15 19:12:04 +02:00
composer.json drop EventDispatcher, add prioritied NodeTraversers 2017-08-20 15:25:03 +02:00
easy-coding-standard.neon use simple NodeTypeResolver according to NodeVisitor example 2017-08-20 00:51:00 +02:00
LICENSE init meta files 2017-07-15 19:12:04 +02:00
phpstan.neon phpstan fixes 2017-08-10 12:29:43 +02:00
phpunit.xml init 2017-07-15 19:01:21 +02:00
README.md change PropertyRector to InjectPropertyRector 2017-08-12 13:43:13 +02:00

Rector - Reconstruct your Legacy Code to Modern Codebase

Build Status Coverage Status

This tool will reconstruct (change) your code - run it only in a new clean git branch.

All Reconstructors

Nette

  • FormCallbackRector
  • InjectPropertyRector
  • NetteObjectToSmartTraitRector
  • RemoveConfiguratorConstantsRector

Symfony

  • NamedServicesToConstructorNodeTraverser

Install

composer require rector/rector --dev

Use

vendor/bin/rector reconstruct src

How to Contribute

Just follow 3 rules:

  • 1 feature per pull-request

  • New feature needs tests. Coveralls.io checks code coverage under every PR.

  • Tests, coding standard and PHPStan checks must pass

    composer all
    

    Often you don't need to fix coding standard manually, just run:

    composer fs
    

We would be happy to merge your feature then.