-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.php_cs.dist
63 lines (58 loc) · 2 KB
/
.php_cs.dist
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
56
57
58
59
60
61
62
63
<?php declare(strict_types=1);
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules(
[
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'],
'array_indentation' => true,
'class_attributes_separation' => ['elements' => ['method']],
'binary_operator_spaces' => ['default' => 'single_space'],
'general_phpdoc_annotation_remove' => [
'api',
'access',
'author',
'category',
'copyright',
'created',
'license',
'link',
'package',
'since',
'subpackage',
'version',
],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_indent' => true,
'phpdoc_scalar' => true,
'phpdoc_single_line_var_spacing' => true,
'no_empty_phpdoc' => true,
'no_unused_imports' => true,
'modernize_types_casting' => true,
'php_unit_method_casing' => ['case' => 'snake_case'],
'php_unit_test_annotation' => ['style' => 'annotation'],
'php_unit_construct' => true,
'php_unit_set_up_tear_down_visibility' => true,
'ternary_to_null_coalescing' => true,
'trim_array_spaces' => true,
]
)
->setIndent(' ')
->setLineEnding("\n")
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('homestead')
->notPath('public')
->notPath('vendor')
->name('*.php')
->notName('*.blade.php')
->notName('_ide_helper.php')
->notName('.phpstorm.meta.php')
->notName('artisan.php')
->notName('server.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);