-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
33 lines (31 loc) · 1015 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'phpdoc_var_without_name' => false,
'declare_strict_types' => false,
'phpdoc_line_span' => ['property' => 'single'],
'blank_line_after_namespace' => true,
'visibility_required' => true,
'encoding' => true,
'full_opening_tag' => true,
'braces' => true,
'line_ending' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => ['null_adjustment'=> 'always_last'],
])->setFinder($finder);