-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
37 lines (33 loc) · 1.02 KB
/
.php-cs-fixer.dist.php
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
33
34
35
36
37
<?php
declare(strict_types=1);
if (!file_exists(__DIR__.'/src')) {
exit(0);
}
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PER' => true,
'@DoctrineAnnotation' => true,
'@PSR1' => true,
'@PSR12' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'concat_space' => false,
'protected_to_private' => false,
'native_constant_invocation' => ['strict' => false],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false],
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true],
'modernize_strpos' => true,
'get_class_to_class_keyword' => true,
'declare_strict_types' => true,
'@PHP82Migration' => true,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
->append([__FILE__])
)
->setCacheFile('.php-cs-fixer.cache')
;