Add and configure php-cs-fixer

This commit is contained in:
Oliver Davies 2019-05-21 07:24:58 +01:00
parent f3da42fce9
commit a701ec46b3
4 changed files with 647 additions and 1 deletions

14
.php_cs.dist Normal file
View file

@ -0,0 +1,14 @@
<?php
use PhpCsFixer\Config;
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$finder->files()->in('src')->in('src');
return Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder);