-
Notifications
You must be signed in to change notification settings - Fork 41
/
.php-cs-fixer.php
44 lines (38 loc) · 1.35 KB
/
.php-cs-fixer.php
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
/*
* This file is part of the jolicode/elastically library.
*
* (c) JoliCode <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$fileHeaderComment = <<<'EOF'
This file is part of the jolicode/elastically library.
(c) JoliCode <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('tests/Jane/generated/')
->append([
__FILE__,
])
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PHP80Migration' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'php_unit_internal_class' => false, // From @PhpCsFixer but we don't want it
'php_unit_test_class_requires_covers' => false, // From @PhpCsFixer but we don't want it
'phpdoc_add_missing_param_annotation' => false, // From @PhpCsFixer but we don't want it
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'],
'concat_space' => ['spacing' => 'one'],
'method_chaining_indentation' => false, // Does not work with tree builder
])
->setFinder($finder)
;