-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
38 lines (36 loc) · 1.57 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
38
<?php declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->notPath('/^bootstrap\.php$/')
->append([__FILE__])
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'blank_line_after_opening_tag' => false,
'blank_line_before_statement' => false,
'cast_spaces' => ['space' => 'none'],
'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one']],
'comment_to_phpdoc' => ['ignored_tags' => ['todo']],
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => false,
'linebreak_after_opening_tag' => false,
'no_null_property_initialization' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'allow_unused_params' => false],
'nullable_type_declaration' => true,
'nullable_type_declaration_for_default_null_value' => false,
'ordered_class_elements' => ['order' => ['use_trait', 'constant', 'property', 'construct']],
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],
'phpdoc_align' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => ['ignored_tags' => ['var', 'see', 'todo', 'psalm-suppress']],
'protected_to_private' => false,
'yoda_style' => false,
'visibility_required' => ['elements' => ['property', 'method']],
])
->setFinder($finder)
;