2019-10-18 12:36:53 +02:00
|
|
|
<?php
|
|
|
|
|
2021-10-05 17:50:51 +02:00
|
|
|
$config = (new PhpCsFixer\Config())
|
2019-10-18 12:36:53 +02:00
|
|
|
->setRiskyAllowed(true)
|
|
|
|
->setRules([
|
2023-05-21 14:00:00 +01:00
|
|
|
'@PHP71Migration:risky' => true,
|
|
|
|
'@PHPUnit75Migration:risky' => true,
|
|
|
|
'@Symfony' => true,
|
2019-10-18 12:36:53 +02:00
|
|
|
'declare_strict_types' => false,
|
2023-05-21 14:00:00 +01:00
|
|
|
'global_namespace_import' => false,
|
2023-12-03 20:27:41 +00:00
|
|
|
'no_superfluous_phpdoc_tags' => [
|
|
|
|
'allow_mixed' => true,
|
|
|
|
],
|
2023-05-21 14:00:00 +01:00
|
|
|
'phpdoc_annotation_without_dot' => false,
|
|
|
|
'phpdoc_summary' => false,
|
|
|
|
'phpdoc_to_comment' => false,
|
|
|
|
'single_line_throw' => false,
|
|
|
|
'void_return' => false,
|
2020-06-13 14:36:51 +03:00
|
|
|
'yoda_style' => false,
|
2019-10-18 12:36:53 +02:00
|
|
|
])
|
|
|
|
->setFinder(
|
|
|
|
PhpCsFixer\Finder::create()
|
|
|
|
->in(__DIR__.'/src')
|
2019-10-30 12:56:22 +02:00
|
|
|
->in(__DIR__.'/tests')
|
2019-10-18 12:36:53 +02:00
|
|
|
->name('*.php')
|
|
|
|
)
|
|
|
|
;
|
|
|
|
|
|
|
|
return $config;
|