-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
33 lines (31 loc) · 994 Bytes
/
.php-cs-fixer.php
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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'php_unit_test_class_requires_covers' => false,
'backtick_to_shell_exec' => true,
'blank_line_before_statement' => [
'statements' => ['declare', 'return', 'case'],
],
'comment_to_phpdoc' => false,
'declare_equal_normalize' => ['space' => 'single'],
'global_namespace_import' => true,
'linebreak_after_opening_tag' => true,
'native_function_invocation' => false,
'no_unset_on_property' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'phpdoc_to_comment' => false,
'self_static_accessor' => true,
])
->setFinder($finder)
;