forked from GwendolenLynch/msgphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
44 lines (40 loc) · 1.31 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
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'header_comment' => ['header' => ''],
'list_syntax' => ['syntax' => 'short'],
'nullable_type_declaration_for_default_null_value' => true,
'php_unit_strict' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'php_unit_test_class_requires_covers' => false,
'phpdoc_line_span' => ['const' => 'single', 'method' => 'multi', 'property' => 'single'],
'phpdoc_to_comment' => false,
'self_static_accessor' => true,
];
return Config::create()
->setUsingCache(true)
->setCacheFile(__DIR__.'/var/php-cs-fixer.cache')
->setRules($rules)
->setRiskyAllowed(true)
->setFinder(
Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->append([
__FILE__,
])
->notPath('EavBundle/Resources/')
->notPath('EavBundle/DependencyInjection/Configuration.php')
->notPath('UserBundle/Resources/')
->notPath('UserBundle/DependencyInjection/Configuration.php')
)
;