2019-12-14 11:10:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
|
->in('app')
|
|
|
|
->in('database')
|
|
|
|
->in('routes')
|
2021-05-04 18:17:01 +08:00
|
|
|
->in('tests');
|
2019-12-14 11:10:37 +08:00
|
|
|
|
2021-05-04 18:17:01 +08:00
|
|
|
$config = new PhpCsFixer\Config();
|
|
|
|
return $config->setRules([
|
2019-12-14 11:10:37 +08:00
|
|
|
'@Symfony' => true,
|
|
|
|
'align_multiline_comment' => true,
|
|
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
|
|
'increment_style' => ['style' => 'post'],
|
|
|
|
'list_syntax' => ['syntax' => 'short'],
|
|
|
|
'yoda_style' => false,
|
|
|
|
])
|
2021-05-04 18:17:01 +08:00
|
|
|
->setFinder($finder);
|