1
1
Fork 0

Add PHP CS Fixer tool

- Add executable in `util`
- Add config file for a project-wide run of the fixer
This commit is contained in:
Hypolite Petovan 2016-10-03 08:50:31 -04:00
parent 50b07cb46a
commit 077f69d00d
2 changed files with 16 additions and 0 deletions

16
.php_cs Normal file
View file

@ -0,0 +1,16 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('doc')
->exclude('images')
->exclude('js')
->exclude('library')
->exclude('mods')
->exclude('spec')
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->finder($finder)
;

BIN
php-cs-fixer.phar Normal file

Binary file not shown.