forked from faithcomesbyhearing/dbp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
31 lines (28 loc) · 836 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
31
<?php
require_once __DIR__.'/fixers/PrettierPHPFixer.php';
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('public/sdk')
->exclude('bootstrap')
->exclude('storage')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
;
return PhpCsFixer\Config::create()
->registerCustomFixers([
(new PrettierPHPFixer()),
])
->setRules([
'Prettier/php' => true,
'@PSR2' => true,
'method_argument_space' => [
'ensure_fully_multiline' => false,
'keep_multiple_spaces_after_comma' => true
],
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'single_quote' => true,
'no_trailing_comma_in_list_call' => false,
])->setFinder($finder);