forked from julienj/twity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
27 lines (26 loc) · 1 KB
/
.php_cs.dist
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
<?php
return PhpCsFixer\Config::create()
->setRules(
[
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'phpdoc_order' => true,
'align_multiline_comment' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'linebreak_after_opening_tag' => true,
'method_chaining_indentation' => true,
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => true,
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_class_elements' => true,
'ordered_imports' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ["author", "package"]]
]
)
->setCacheFile(__DIR__.'/.php_cs.cache')
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__.'/src'))
;