forked from romanzipp/Laravel-SEO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
34 lines (32 loc) · 1.13 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
27
28
29
30
31
32
33
34
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['bootstrap', 'storage', 'vendor'])
->name('*.php')
->name('.php_cs.dist')
->name('_ide_helper')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => true,
'braces' => true, // https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4487
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'fully_qualified_strict_types' => true,
'no_superfluous_phpdoc_tags' => false,
'no_useless_return' => true,
'not_operator_with_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'php_unit_fqcn_annotation' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => true,
])
->setFinder($finder);