-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
39 lines (37 loc) · 1.32 KB
/
.php-cs-fixer.dist.php
File metadata and controls
39 lines (37 loc) · 1.32 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->exclude('src/Swagger')
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'array_syntax' => ['syntax' => 'short'],
'ordered_class_elements' => true,
'global_namespace_import' => true,
'phpdoc_to_comment' => ['ignored_tags' => ['var']],
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
'blank_line_between_import_groups' => true,
'single_line_throw' => false,
'single_line_empty_body' => true,
'nullable_type_declaration_for_default_null_value' => true,
'array_indentation' => false,
'ordered_types' => false,
'phpdoc_scalar' => false,
'fully_qualified_strict_types' => false,
'blank_line_after_opening_tag' => false,
'nullable_type_declaration' => false,
'native_function_invocation' => false,
])
->setFinder($finder)
->setRiskyAllowed(true)
;