forked from guzzle/guzzle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
36 lines (34 loc) · 1.2 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
<?php
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => false,
'concat_space' => ['spacing'=>'one'],
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'php_unit_no_expectation_annotation' => ['target' => 'newest'],
'php_unit_expectation' => ['target' => 'newest'],
'no_empty_phpdoc' => true,
'no_extra_blank_lines' => true,
'ordered_imports' => true,
'no_superfluous_phpdoc_tags' => true,
'no_blank_lines_after_phpdoc' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_trim' => true,
'phpdoc_scalar' => true,
'phpdoc_types' => true,
'phpdoc_var_without_name' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_separation' => true,
'phpdoc_align' => ['align'=>'vertical'],
// 'native_function_invocation' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->name('*.php')
)
;
return $config;