forked from Elao/accesseo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
29 lines (27 loc) · 831 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->in([__DIR__])
->exclude('vendor')
;
return (new PhpCsFixer\Config())
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'declare_strict_types' => true,
'php_unit_namespaced' => true,
'psr0' => false,
'phpdoc_summary' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'simplified_null_return' => false,
'yoda_style' => null,
'no_superfluous_phpdoc_tags' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'void_return' => true,
'single_line_throw' => false,
])
;