Add friendsofphp/php-cs-fixer

This commit is contained in:
Oliver Davies 2020-02-10 08:36:25 +00:00
parent c5dc5a6b88
commit 82ba102094
3 changed files with 924 additions and 1 deletions

14
.php_cs.dist Normal file
View file

@ -0,0 +1,14 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['fixtures']);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'phpdoc_order' => true,
])
->setFinder($finder);