-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
56 lines (54 loc) · 1.7 KB
/
.php-cs-fixer.dist.php
File metadata and controls
56 lines (54 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
<?php
$finder = (new PhpCsFixer\Finder())
->in(
[
__DIR__.'/src',
__DIR__.'/tests',
],
)
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(isRiskyAllowed: true)
->setRules([
'@Symfony' => true,
'strict_comparison' => true,
'declare_strict_types' => true,
'blank_line_between_import_groups' => false,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'increment_style' => false,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'native_function_invocation' => false,
'no_null_property_initialization' => false,
'no_useless_concat_operator' => false,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['const', 'class', 'function'],
],
'php_unit_method_casing' => ['case' => 'snake_case'],
'phpdoc_align' => false,
'phpdoc_array_type' => true,
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'psr_autoloading' => true,
'single_line_throw' => false,
'single_quote' => false,
'trailing_comma_in_multiline' => [
'elements' => ['arrays', 'arguments', 'parameters'],
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'fully_qualified_strict_types' => [
'import_symbols' => true,
],
'static_lambda' => true,
])
->setFinder($finder)
;