forked from kriswallsmith/spork
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs.dist
54 lines (52 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'psr4' => true,
'binary_operator_spaces' => true,
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => false,
'object_operator_without_whitespace' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'blank_line_before_return' => true,
'single_quote' => true,
'blank_line_after_opening_tag' => true,
'no_extra_blank_lines' => [
'extra',
'continue',
'curly_brace_block',
'parenthesis_brace_block',
'return',
'square_brace_block',
'throw',
'use',
'use_trait',
'switch',
'case',
'default',
],
'no_whitespace_in_blank_line' => true,
'no_blank_lines_after_class_opening' => true,
'return_type_declaration' => [
'space_before' => 'none',
],
'concat_space' => [
'spacing' => 'one',
],
'compact_nullable_typehint' => true,
'ternary_operator_spaces' => true,
'unary_operator_spaces' => true,
])
->setFinder($finder);