forked from mll-lab/laravel-graphql-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
30 lines (28 loc) · 868 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/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notName('_ide_helper.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false],
'concat_space' => ['spacing' => 'one'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'phpdoc_align' => [],
'phpdoc_no_alias_tag' => ['type' => 'var', 'link' => 'see'],
'phpdoc_no_empty_return' => false,
])
->setFinder($finder)
;