-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
32 lines (28 loc) · 817 Bytes
/
Copy path.php-cs-fixer.php
File metadata and controls
32 lines (28 loc) · 817 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
31
32
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in('./src')
->in('./tests');
$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_add_missing_param_annotation' => true,
'linebreak_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_summary' => false,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'phpdoc_align' => true,
'ordered_imports' => true,
'native_function_invocation' => true,
'@PSR12' => true,
'strict_param' => true,
'declare_strict_types' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;