-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
57 lines (54 loc) · 1.87 KB
/
Copy path.php-cs-fixer.php
File metadata and controls
57 lines (54 loc) · 1.87 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
57
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'declare_strict_types' => true,
'ordered_imports' => [
'imports_order' => [
'class',
'const',
'function',
],
],
'strict_comparison' => true,
'combine_consecutive_unsets' => true,
'dir_constant' => true,
'ereg_to_preg' => true,
'modernize_types_casting' => true,
'multiline_whitespace_before_semicolons' => false,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => ['order' => ['param', 'return', 'throws']],
'strict_param' => true,
'phpdoc_to_comment' => false,
'phpdoc_align' => false,
'yoda_style' => false,
'increment_style' => false,
'phpdoc_no_empty_return' => false,
'single_line_throw' => false,
'blank_line_before_statement' => false,
'phpdoc_separation' => [
'groups' => [
['Annotation', 'NamedArgumentConstructor', 'Target'],
['author', 'copyright', 'license'],
['category', 'package', 'subpackage'],
['property', 'property-read', 'property-write'],
['deprecated', 'link', 'see', 'since'],
['return', 'phpstan-return', 'param', 'phpstan-param'],
],
],
])
->setFinder(
Finder::create()
->in(__DIR__)
->exclude(['tmp', 'vendor'])
)
;