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,
|
2018-02-24 11:31:34 +01:00
|
|
|
'no_short_echo_tag' => true,
|
2018-12-29 12:03:22 +01:00
|
|
|
'ordered_imports' => true,
|
|
|
|
'no_alternative_syntax' => true,
|
|
|
|
'ordered_class_elements' => true,
|
|
|
|
'phpdoc_order' => true,
|
2019-12-27 10:28:53 +01:00
|
|
|
//'no_superfluous_phpdoc_tags' => [
|
|
|
|
// 'allow_mixed' => true,
|
|
|
|
// 'allow_unused_params' => true,
|
|
|
|
//],
|
|
|
|
//'phpdoc_add_missing_param_annotation' => [
|
|
|
|
// 'only_untyped' => false,
|
|
|
|
//],
|
2017-08-11 12:11:57 +02:00
|
|
|
])
|
|
|
|
->setFinder($finder);
|
|
|
|
|
|
|
|
return $config;
|