-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php_cs.dist
68 lines (63 loc) · 1.8 KB
/
.php_cs.dist
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
58
59
60
61
62
63
64
65
66
67
68
<?php
if (!class_exists('PhpCsFixer\Config', true)) {
fwrite(STDERR, "Your php-cs-version is outdated: please upgrade it.\n");
die(16);
}
return PhpCsFixer\Config::create()
->setCacheFile(__DIR__.'/.php_cs.cache')
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_construct' => false,
'php_unit_strict' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_align' => false,
'phpdoc_no_access' => false,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'protected_to_private' => false,
])
->setFinder(PhpCsFixer\Finder::create()
->exclude(array(
'src/data',
'tests/dataFiles',
'vendor',
))
->in(__DIR__)
)
;
/*
This document has been generated with
https://mlocati.github.io/php-cs-fixer-configurator/?version=2.2
you can change this configuration by importing this YAML code:
fixerSets:
- '@Symfony'
- '@Symfony:risky'
risky: true
fixers:
array_syntax:
syntax: long
no_php4_constructor: true
no_unreachable_default_argument_value: true
no_useless_else: true
no_useless_return: true
ordered_class_elements: true
ordered_imports: true
php_unit_construct: false
php_unit_strict: true
phpdoc_add_missing_param_annotation:
only_untyped: false
phpdoc_align: false
phpdoc_no_access: false
phpdoc_no_package: false
phpdoc_order: true
protected_to_private: false
*/