Add php-cs-fixer setup

Exclude propel generated files from php-cs-fixer
This commit is contained in:
jo 2021-09-15 14:07:26 +02:00
parent 0450ca7aad
commit 45eda99ba3
3 changed files with 27 additions and 1 deletions

15
legacy/.php-cs-fixer.php Normal file
View 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);