-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
44 lines (41 loc) · 1.46 KB
/
.php-cs-fixer.dist.php
File metadata and controls
44 lines (41 loc) · 1.46 KB
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
40
41
42
43
44
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_statement' => false,
'braces' => ['allow_single_line_closure' => true],
'heredoc_to_nowdoc' => false,
'no_unreachable_default_argument_value' => false,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'phpdoc_annotation_without_dot' => false,
'phpdoc_order' => true,
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'trailing_comma_in_multiline' => false,
'yoda_style' => false,
'no_superfluous_phpdoc_tags' => true,
'native_constant_invocation' => false,
'native_function_invocation' => false,
'declare_strict_types' => false,
'@DoctrineAnnotation' => true,
'doctrine_annotation_indentation' => [
'indent_mixed_lines' => true,
],
'single_line_throw' => false,
'phpdoc_trim_consecutive_blank_line_separation' => false,
'global_namespace_import' => [
'import_constants' => false,
'import_functions' => false,
'import_classes' => true,
],
'nullable_type_declaration_for_default_null_value' => false,
])
->setRiskyAllowed(true)
->setFinder($finder)
;