-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
30 lines (28 loc) · 855 Bytes
/
.php-cs-fixer.php
File metadata and controls
30 lines (28 loc) · 855 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
$finder = PhpCsFixer\Finder::create()
->exclude('tests/Rules/data')
->in(__DIR__);
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules(
[
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'phpdoc_align' => false,
'phpdoc_to_comment' => false,
'native_function_invocation' => false,
'nullable_type_declaration_for_default_null_value' => true,
]
)
->setFinder($finder)
;