-
-
Notifications
You must be signed in to change notification settings - Fork 329
/
.php-cs-fixer.dist.php
55 lines (45 loc) · 1.25 KB
/
.php-cs-fixer.dist.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
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
* This file is part of the Alice package.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Fidry\PhpCsFixerConfig\FidryConfig;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in([
__DIR__.'/fixtures',
__DIR__.'/profiling',
__DIR__.'/src',
__DIR__.'/tests',
])
->append([
__DIR__.'/.php-cs-fixer.dist.php',
])
->exclude([
'fixtures/Parser/files/php',
'Bridge/Symfony/Application/var',
'fixtures/Bridge/Symfony/Application/cache',
]);
$config = new FidryConfig(
<<<'EOF'
This file is part of the Alice package.
(c) Nelmio <hello@nelm.io>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF,
74_000,
);
$config->addRules([
'php_unit_method_casing' => ['case' => 'camel_case'],
'php_unit_test_annotation' => false,
'phpdoc_no_empty_return' => false,
'static_lambda' => false,
]);
$config->setFinder($finder);
$config->setCacheFile(__DIR__.'/dist/.php-cs-fixer.cache');
return $config;