-
Notifications
You must be signed in to change notification settings - Fork 25
/
.php_cs
59 lines (54 loc) · 1.69 KB
/
.php_cs
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
<?php
$finder = \PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
;
$header = <<<HEADER
This file is part of the Nexylan packages.
(c) Nexylan SAS <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
HEADER;
return \PhpCsFixer\Config::create()
->setRules([
'@PHP56Migration' => true,
'@PHP56Migration:risky' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PHP73Migration' => true,
'@PHPUnit57Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short'
],
'combine_consecutive_unsets' => true,
'doctrine_annotation_braces' => true,
'doctrine_annotation_spaces' => true,
'general_phpdoc_annotation_remove' => [
'covers',
],
'header_comment' => [
'header' => $header,
],
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'native_function_invocation' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'phpdoc_summary' => false,
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;