-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php_cs
More file actions
38 lines (32 loc) · 1.14 KB
/
.php_cs
File metadata and controls
38 lines (32 loc) · 1.14 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
<?php
declare(strict_types=1);
if (!\file_exists(__DIR__.'/src')) {
exit(0);
}
$header = <<<'EOF'
This file is a part of logrotate package.
Copyright (c) %s Christin Gruber <c.gruber@touchdesign.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PSR2' => true,
'header_comment' => ['header' => sprintf($header, date('Y'))],
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'protected_to_private' => false,
'combine_nested_dirname' => true,
'ordered_imports' => true,
'declare_strict_types' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests', __DIR__.'/examples', __DIR__.'/bin'])
->notPath('#/Fixtures/#')
);