2017-08-07 13:07:18 +02:00
|
|
|
<?php
|
|
|
|
|
2017-08-11 12:11:57 +02:00
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
|
->files()
|
|
|
|
->exclude('.couscous')
|
|
|
|
->exclude('node_modules')
|
|
|
|
->exclude('vendor')
|
|
|
|
->exclude('tests')
|
|
|
|
->ignoreDotFiles(true)
|
|
|
|
->ignoreVCS(true)
|
|
|
|
->in(__DIR__);
|
|
|
|
|
|
|
|
$config = PhpCsFixer\Config::create()
|
|
|
|
->setRules([
|
2017-08-07 13:07:18 +02:00
|
|
|
'@Symfony' => true,
|
2017-08-11 12:11:57 +02:00
|
|
|
'array_syntax' => ['syntax' => 'short'],
|
2018-02-06 15:59:12 +01:00
|
|
|
'yoda_style' => false,
|
2017-08-11 12:11:57 +02:00
|
|
|
])
|
|
|
|
->setFinder($finder);
|
|
|
|
|
|
|
|
return $config;
|