-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
29 lines (28 loc) · 985 Bytes
/
.php_cs
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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
'@PHP56Migration' => true,
'@PhpCsFixer' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'native_function_invocation' => ['scope' => 'namespaced'],
'no_alias_functions' => ['sets' => ['@all']],
'concat_space' => ['spacing' => 'one'],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'binary_operator_spaces' => ['operators' => ['=>' => 'align', '=' => 'align']],
))
->setFinder($finder);