-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
34 lines (30 loc) · 1.02 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
// Reference: http://cs.sensiolabs.org/
// Usage: php-cs-fixer fix app
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['bootstrap', 'storage', 'vendor'])
->name('*.php')
->name('_ide_helper')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'no_extra_blank_lines' => ['default', 'use', 'useTrait'],
'no_multiline_whitespace_before_semicolons' => true,
'no_unused_imports' => true,
'no_superfluous_phpdoc_tags' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_add_missing_param_annotation' => true,
'simplified_null_return' => false,
'strict_comparison' => true,
'strict_param' => true,
'yoda_style' => false,
])
->setFinder($finder);