-
Notifications
You must be signed in to change notification settings - Fork 74
/
.php-cs-fixer.dist.php
34 lines (31 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
<?php
$rules = [
'@Symfony' => true,
'global_namespace_import' => ['import_constants' => true, 'import_functions' => true, 'import_classes' => true],
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'phpdoc_to_comment' => false,
'phpdoc_align' => false,
'php_unit_method_casing' => false,
'blank_line_between_import_groups' => false,
'phpdoc_separation' => ['groups' => [['test', 'dataProvider']]],
'nullable_type_declaration_for_default_null_value' => true,
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => false],
'nullable_type_declaration' => false,
];
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
__DIR__.'/app/bin',
__DIR__.'/app/config',
__DIR__.'/app/public',
__DIR__.'/app/src',
__DIR__.'/app/tests',
]);
$config = new PhpCsFixer\Config();
return $config
->setFinder($finder)
->setRiskyAllowed(true)
->setRules($rules)
->setUsingCache(true)
;