-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
70 lines (67 loc) · 2.38 KB
/
.php_cs
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
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0|configurator
* you can change this configuration by importing this file.
*/
$header = <<<'EOF'
This file is part of PHP CS Fixer.
(c) Fabien Potencier <[email protected]>
Dariusz Rumiński <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude(['storage', 'tests'])
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setUsingCache(false)
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'@PHP54Migration' => true,
// '@PHP70Migration' => true,
// '@PHP71Migration' => true,
// '@PHP73Migration' => true,
// 'array_syntax' => ['syntax' => 'long'],
'blank_line_before_statement' => [
'statements' => ['declare','return','throw','try']
],
'class_definition' => ['multi_line_extends_each_single_line' => true],
'concat_space' => ['spacing' => 'one'],
'increment_style' => false,
'multiline_whitespace_before_semicolons' => false,
'no_empty_comment' => false,
'no_extra_blank_lines' => [
'tokens' => ['curly_brace_block','extra','parenthesis_brace_block','square_brace_block','throw']
],
'no_superfluous_phpdoc_tags' => false,
// 'no_unused_imports' => false,
'ordered_imports' => false,
'ordered_class_elements' => [
'order' => [
'use_trait','destruct','phpunit',
'constant_public','constant_protected','constant_private'
]
],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_annotation_without_dot' => false,
// 'phpdoc_annotation_without_dot' => false,
// 'phpdoc_inline_tag_normalizer' => false,
'phpdoc_no_alias_tag' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_types_order' => false,
'single_line_comment_style' => false,
'single_line_throw' => false,
'single_trait_insert_per_statement' => false,
'trailing_comma_in_multiline' => false
])
->setFinder($finder)
;
return $config;