forked from ozean12/shopware6-payment-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
32 lines (26 loc) · 865 Bytes
/
.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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$header = "Copyright (c) Billie GmbH
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.";
$finder = Finder::create()->in(__DIR__ . '/src');
$rules = [
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'header_comment' => ['header' => $header],
'yoda_style' => false,
'no_blank_lines_after_class_opening' => true,
'list_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'concat_space' => ['spacing' => 'one'],
'trailing_comma_in_multiline_array' => true,
'no_blank_lines_after_phpdoc' => true,
'class_attributes_separation' => true,
'declare_strict_types' => true,
];
return Config::create()
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);