-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
26 lines (24 loc) · 1.01 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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => ['align_double_arrow' => true],
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'no_multiline_whitespace_before_semicolons' => true,
'ordered_imports' => true,
'no_unused_imports' => true,
'no_short_echo_tag' => true,
'phpdoc_order' => true,
])
->setFinder($finder)
->setCacheFile(__DIR__.'/storage/framework/cache/.php_cs.cache')
->setUsingCache(true);