-
Notifications
You must be signed in to change notification settings - Fork 4
/
.php-cs-fixer.dist.php
38 lines (33 loc) · 1.04 KB
/
.php-cs-fixer.dist.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
34
35
36
37
38
<?php
$header = <<<'EOF'
This file is part of the ElaoJsonForm bundle.
Copyright (C) Elao
@author Elao <[email protected]>
EOF;
$finder = PhpCsFixer\Finder::create()
->in([__DIR__])
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setUsingCache(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
//'header_comment' => ['header' => $header],
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_imports' => true,
'php_unit_namespaced' => true,
'php_unit_method_casing' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_summary' => false,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'psr_autoloading' => true,
'single_line_throw' => false,
'simplified_null_return' => false,
'void_return' => true,
'yoda_style' => [],
])
;