Chicory
ad44b27689
All checks were successful
Run code tests / Run-code-test (push) Successful in 1m28s
32 lines
944 B
PHP
32 lines
944 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
|
|
return $config
|
|
->setRiskyAllowed(true)
|
|
->setRules([
|
|
'@PSR12' => true,
|
|
'@Symfony' => true,
|
|
'assign_null_coalescing_to_coalesce_equal' => true,
|
|
'combine_consecutive_issets' => true,
|
|
'combine_consecutive_unsets' => true,
|
|
'declare_strict_types' => true,
|
|
'nullable_type_declaration' => true,
|
|
'phpdoc_var_annotation_correct_order' => true,
|
|
'single_line_empty_body' => true,
|
|
'ternary_to_null_coalescing' => true,
|
|
'phpdoc_align' => ['align' => 'left'],
|
|
'concat_space' => ['spacing' => 'one'],
|
|
'global_namespace_import' => [
|
|
'import_classes' => true,
|
|
'import_constants' => true,
|
|
'import_functions' => true,
|
|
],
|
|
])
|
|
->setFinder(PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->in(__DIR__.'/tests')
|
|
);
|