hoaproject / Devtools

The Hoa\Devtools library.
https://hoa-project.net/
6 stars 6 forks source link

Upgrade config file for php-cs-fixer #38

Closed vonglasow closed 7 years ago

vonglasow commented 7 years ago

php-cs-fixer version 1.xx.xx works with this current configuration file Devtools/Resource/PHPCSFixer/ConfigurationFile.php but for the version 2 everything have changed.

Now we need to use --config instead of --config-file to specify the configuration file All classes have been moved into another namespace and the api is completely changed. @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/19f3e46b09e0de24efa0aea6c2beb42410e37cc8/.php_cs.dist

As you can see also the definition of all rules to check have been change from string to an array.