forked from shopwareLabs/sw-cli-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
31 lines (29 loc) · 893 Bytes
/
.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
28
29
30
31
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'function_typehint_space' => true,
'function_declaration' => true,
'no_empty_phpdoc' => true,
'no_empty_comment' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => [
'only_untyped' => false
],
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_types' => true,
'combine_consecutive_unsets' => true,
'hash_to_slash_comment' => true,
'linebreak_after_opening_tag' => true,
'single_quote' => true,
'short_scalar_cast' => true,
])
->setFinder($finder)
;