forked from chrisandchris/barcode-bundle
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
27 lines (25 loc) · 865 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
27 lines (25 loc) · 865 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'var',
'vendor'
]);
return (new PhpCsFixer\Config())
->setRules([
'@PHP71Migration' => true,
'@PHP73Migration' => true,
'@PHP74Migration' => true,
'@Symfony' => true,
'function_declaration' => ['closure_function_spacing' => 'none'],
'heredoc_indentation' => ['indentation' => 'same_as_start'],
'list_syntax' => ['syntax' => 'long'],
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_types_order' => false,
'single_line_throw' => false,
])
->setFinder($finder)
->setCacheFile(__DIR__.'/.php-cs-fixer.cache');