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:
parent
50b07cb46a
commit
077f69d00d
2 changed files with 16 additions and 0 deletions
16
.php_cs
Normal file
16
.php_cs
Normal 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
BIN
php-cs-fixer.phar
Normal file
Binary file not shown.
Loading…
Reference in a new issue