forked from spatie/laravel-activitylog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
30 lines (28 loc) · 790 Bytes
/
.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
<?php
$finder = \PhpCsFixer\Finder::create()
->notPath('bootstrap/*')
->notPath('storage/*')
->notPath('resources/view/mail/*')
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return \PhpCsFixer\Config::create()
->setRules(array_merge(require '.php_cs.laravel', [
'@PSR2' => true,
'@PSR12' => true,
'no_unused_imports' => true,
'phpdoc_to_comment' => false,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'simplified_null_return' => false,
]))
->setLineEnding("\n")
->setIndent(str_repeat(' ', 4))
->setUsingCache(false)
->setRiskyAllowed(true)
->setFinder($finder);