forked from khsing/laravel-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
40 lines (38 loc) · 1.07 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
35
36
37
38
39
40
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
/**
* PHP CS Fixer Config
*/
return PhpCsFixer\Config::create()
->setIndent(' ')
->setUsingCache(true)
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
// 'operators_spaces'=>true,
'binary_operator_spaces' => [
'align_double_arrow' => false,
'align_equals' => false,
],
// 'no_unused_imports' => true,
'ordered_imports' => true,
'concat_space' => [
'spacing' => 'one',
],
'no_extra_consecutive_blank_lines' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'],
'declare_equal_normalize' => [
'space' => 'single',
],
'phpdoc_order' => true,
'phpdoc_add_missing_param_annotation' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'heredoc_to_nowdoc' => true,
'trim_array_spaces' => true,
])
->setFinder($finder)
;