2021-11-23 12:42:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
|
->in(__DIR__)
|
2022-01-08 15:07:15 +01:00
|
|
|
->exclude('ext')
|
2021-11-23 12:42:13 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
|
|
return $config->setRules([
|
2022-01-10 16:07:06 +01:00
|
|
|
'@Symfony' => true,
|
2022-01-20 12:38:14 +01:00
|
|
|
'not_operator_with_space' => true,
|
2022-01-10 16:07:06 +01:00
|
|
|
'yoda_style' => false,
|
|
|
|
'single_line_throw' => false,
|
|
|
|
'unary_operator_spaces' => false,
|
2021-11-23 12:42:13 +01:00
|
|
|
'visibility_required' => false,
|
2022-02-03 21:41:58 +01:00
|
|
|
'php_unit_test_class_requires_covers' => true,
|
2022-02-03 21:56:47 +01:00
|
|
|
'declare_strict_types' => true,
|
2021-11-23 12:42:13 +01:00
|
|
|
])
|
|
|
|
->setFinder($finder)
|
2022-01-20 12:38:14 +01:00
|
|
|
;
|