forked from nuwave/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
22 lines (20 loc) · 647 Bytes
/
.php_cs
File metadata and controls
22 lines (20 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('assets')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'no_unused_imports' => false,
'ordered_imports' => ['sort_algorithm' => 'length'],
'phpdoc_order' => true,
'not_operator_with_successor_space' => true
])->setFinder($finder);