-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
executable file
·44 lines (41 loc) · 1.07 KB
/
.php_cs
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
<?php
$rules = [
'psr0' => false,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag' => true,
'phpdoc_no_alias_tag' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'phpdoc_trim' => true,
'no_empty_phpdoc' => true,
'no_empty_comment' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'line_ending' => true,
];
$excludes = [
'bootstrap',
'vendor',
'storage',
'node_modules',
];
return PhpCsFixer\Config::create()
->setLineEnding(PHP_EOL)
->setRules($rules)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->name('*.php')
->exclude($excludes)
->notName('README.md')
->notName('*.xml')
->notName('*.yml')
->notName('_ide_helper.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);