-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
30 lines (25 loc) · 717 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
30 lines (25 loc) · 717 Bytes
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
<?php
$licence = <<<'EOF'
This file is part of the smnandre/packapi package.
(c) Simon Andre <smn.andre@gmail.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'tests',
])
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'declare_strict_types' => true,
'strict_param' => true,
'header_comment' => ['header' => $licence],
])
;