-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
58 lines (54 loc) · 1.47 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
->exclude([
'vendor',
]);
return (new Config())
->setRules([
'@Symfony' => true,
'@PSR12' => true,
'array_syntax' => [
'syntax' => 'short',
],
'phpdoc_to_comment' => false,
'declare_strict_types' => true,
'global_namespace_import' => [
'import_classes' => true,
],
'phpdoc_separation' => false,
'phpdoc_align' => false,
'multiline_whitespace_before_semicolons' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arrays',
'parameters',
'match',
],
],
'no_unused_imports' => true,
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'case',
'property',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private',
],
],
'ordered_imports' => true,
'yoda_style' => false,
'nullable_type_declaration_for_default_null_value' => false,
])
->setFinder($finder);