-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
39 lines (37 loc) · 1.14 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
37
38
39
<?php
$finder = PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setIndent(" ")
->setLineEnding("\n")
->setRules([
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => true,
'dir_constant' => true,
'final_class' => true,
'is_null' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => true,
'method_chaining_indentation' => false,
'no_php4_constructor' => true,
'ordered_interfaces' => true,
'php_unit_dedicate_assert_internal_type' => true,
'php_unit_dedicate_assert' => true,
'php_unit_expectation' => true,
'php_unit_mock' => true,
'php_unit_namespaced' => true,
'php_unit_no_expectation_annotation' => true,
'phpdoc_no_empty_return' => false,
'ternary_to_null_coalescing' => true,
'void_return' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;