-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
35 lines (30 loc) · 1.08 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
<?php
/*
* Copyright (c) Fusonic GmbH. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
declare(strict_types=1);
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = (new PhpCsFixer\Finder())
->in(__DIR__);
return (new PhpCsFixer\Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRules([
'@PHP82Migration' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'declare_strict_types' => true,
'header_comment' => [
'header' => 'Copyright (c) Fusonic GmbH. All rights reserved.'.\PHP_EOL.'Licensed under the MIT License. '.
'See LICENSE file in the project root for license information.',
'location' => 'after_open',
],
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_strict' => true,
'single_line_throw' => false,
'strict_comparison' => true,
'strict_param' => true,
])
->setFinder($finder)
->setRiskyAllowed(true);