-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
50 lines (49 loc) · 2.4 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
<?php
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setIndent(' ')
->setRules([
'@Symfony' => true,
'array_indentation' => true,
'binary_operator_spaces' => [
'default' => 'align',
'operators' => [
'=>' => 'align_single_space_minimal',
'|' => 'no_space',
'+' => 'single_space',
'-' => 'single_space',
'*' => 'single_space',
'/' => 'single_space',
'??' => 'single_space',
'||' => 'single_space',
'&&' => 'single_space',
'===' => 'single_space',
'==' => 'single_space',
'!==' => 'single_space',
'!=' => 'single_space',
'<' => 'single_space',
'<=' => 'single_space',
'>' => 'single_space',
'>=' => 'single_space',
],
],
'cast_spaces' => ['space' => 'none'],
'class_attributes_separation' => ['elements' => ['const' => 'only_if_meta']],
'concat_space' => ['spacing' => 'one'],
'global_namespace_import' => ['import_classes' => true],
'increment_style' => false,
'method_chaining_indentation' => true,
'nullable_type_declaration_for_default_null_value' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'phpdoc_line_span' => ['const' => 'single', 'method' => 'single', 'property' => 'single'],
'phpdoc_order' => true,
'phpdoc_to_comment' => ['ignored_tags' => ['noinspection', 'noRector']],
'single_line_throw' => false,
'single_line_comment_spacing' => false,
'yoda_style' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
->files()->notName('Configuration.php')
);