forked from laudeco/dolibarr-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
34 lines (32 loc) · 1.14 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
28
29
30
31
32
33
34
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'no_multiline_whitespace_around_double_arrow' => true,
"binary_operator_spaces" => [
"operators" => ['=>' => PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer::ALIGN_SINGLE_SPACE_MINIMAL]
],
'phpdoc_align' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_separation' => true,
'phpdoc_summary' => true,
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'no_whitespace_before_comma_in_array' => true,
'whitespace_after_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'blank_line_before_statement' => true,
'no_empty_phpdoc' => true,
])
->setFinder($finder)
;