Add php-cs-fixer setup
Exclude propel generated files from php-cs-fixer
This commit is contained in:
parent
0450ca7aad
commit
45eda99ba3
3 changed files with 27 additions and 1 deletions
15
legacy/.php-cs-fixer.php
Normal file
15
legacy/.php-cs-fixer.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__)
|
||||
->exclude('application/models/airtime/map')
|
||||
->exclude('application/models/airtime/om');
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
return $config->setRules([
|
||||
'@PhpCsFixer' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'ordered_class_elements' => false,
|
||||
'yoda_style' => false,
|
||||
])
|
||||
->setFinder($finder);
|
Loading…
Add table
Add a link
Reference in a new issue