-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
30 lines (27 loc) · 1.07 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
<?php
$finder = PhpCsFixer\Finder::create()->in(__DIR__ . '/src');
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'array_indentation' => true,
'method_chaining_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],
'no_superfluous_phpdoc_tags' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_var_annotation_correct_order' => true,
'global_namespace_import' => ['import_classes' => true],
'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one', 'trait_import' => 'one']],
'concat_space' => ['spacing' => 'one'],
'types_spaces' => ['space_multiple_catch' => 'single'],
])
->setFinder($finder)
;