-
Notifications
You must be signed in to change notification settings - Fork 13
/
.php-cs-fixer.dist.php
34 lines (32 loc) · 1.13 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('config')
->exclude('public')
->exclude('node_modules')
->exclude('var')
->notPath('src/Kernel.php')
->notPath('tests/bootstrap.php')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@DoctrineAnnotation' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'global_namespace_import' => true,
'mb_str_functions' => true,
'native_function_invocation' => [],
'ordered_class_elements' => ['order' => ['use_trait']],
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'php_unit_internal_class' => false,
'php_unit_test_class_requires_covers' => false,
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
])
->setFinder($finder)
->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache')
;