-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
31 lines (27 loc) · 938 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
31 lines (27 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude(['var', 'vendor'])
->notPath('src/Kernel.php');
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@PHP82Migration' => true,
'declare_strict_types' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'phpdoc_separation' => false,
'single_line_throw' => false,
'concat_space' => ['spacing' => 'one'],
'yoda_style' => false,
'native_function_invocation' => ['include' => ['@all']],
'modernize_types_casting' => true,
'get_class_to_class_keyword' => true,
])
->setFinder($finder)
->setRiskyAllowed(true);