-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
55 lines (52 loc) · 1.58 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
return (new Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'blank_line_before_statement' => false,
'global_namespace_import' => [
'import_constants' => null,
'import_functions' => null,
'import_classes' => true,
],
'native_constant_invocation' => false,
'native_function_invocation' => false,
'no_extra_blank_lines' => [
'tokens' => [
'break',
'continue',
'curly_brace_block',
'extra',
'parenthesis_brace_block',
'return',
'square_brace_block',
'throw',
],
],
'ordered_imports' => [
'imports_order' => [
OrderedImportsFixer::IMPORT_TYPE_CLASS,
OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
OrderedImportsFixer::IMPORT_TYPE_CONST,
],
'sort_algorithm' => OrderedImportsFixer::SORT_ALPHA,
],
'phpdoc_align' => [
'align' => 'left',
],
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_var_without_name' => false,
'strict_param' => true,
'yoda_style' => false,
])
->setRiskyAllowed(true)
->setFinder(
Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
->append([__FILE__]),
);