-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
39 lines (35 loc) · 942 Bytes
/
.php-cs-fixer.dist.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
36
37
38
39
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->exclude([
'var',
'vendor',
])
->in(__DIR__)
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'multiline_comment_opening_closing' => true, // @PhpCsFixer default
'comment_to_phpdoc' => [
'ignored_tags' => [],
], // @PhpCsFixer:risky default
'concat_space' => [
'spacing' => 'one',
], // overrides @Symfony defaults
'single_line_throw' => false, // overrides @Symfony defaults
'trailing_comma_in_multiline' => [
'after_heredoc' => true,
'elements' => [
'arguments',
'arrays',
'match',
'parameters',
],
], // overrides @Symfony defaults
])
->setFinder($finder)
;