-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
39 lines (33 loc) · 1.12 KB
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
39 lines (33 loc) · 1.12 KB
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
<?php
declare(strict_types=1);
$header = <<<'HEADER'
This file is part of php-cache\cache-bundle package.
(c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
HEADER;
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
__DIR__.'/tools',
]);
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'declare_strict_types' => false,
'header_comment' => ['header' => $header],
'modern_serialization_methods' => false,
'no_php4_constructor' => false,
'no_trailing_whitespace_in_string' => true,
'php_unit_construct' => false,
'php_unit_mock_short_will_return' => false,
'php_unit_set_up_tear_down_visibility' => false,
'php_unit_test_annotation' => false,
'protected_to_private' => false,
'static_lambda' => false,
'void_return' => false,
])
->setRiskyAllowed(true)
->setFinder($finder);