Add friendsofphp/php-cs-fixer
This commit is contained in:
parent
c5dc5a6b88
commit
82ba102094
3 changed files with 924 additions and 1 deletions
14
.php_cs.dist
Normal file
14
.php_cs.dist
Normal 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);
|
||||
Reference in a new issue