-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
39 lines (36 loc) · 1.22 KB
/
.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
$header = <<<EOF
(c) Antal Áron <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setUsingCache(false)
->setRules([
'@DoctrineAnnotation' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'final_internal_class' => ['annotation_include' => []],
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'multiline_whitespace_before_semicolons' => false,
'native_function_invocation' => false,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'psr_autoloading' => true,
'strict_comparison' => true,
'strict_param' => true,
'visibility_required' => ['elements' => ['method', 'property']],
])
->setFinder(
(new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'vendor',
])
);