-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs.dist
53 lines (51 loc) · 1.79 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/Sources/Breeze/')
->in(__DIR__ . '/tests/');
return PhpCsFixer\Config::create()
->setRules([
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'indentation_type' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'class_attributes_separation' => ['elements' => ['method', 'property']],
'declare_strict_types' => true,
'increment_style' => ['style' => 'post'],
'is_null' => ['use_yoda_style' => false],
'list_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
'blank_line_before_return' => true,
'method_chaining_indentation' => true,
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_align' => false,
'phpdoc_order' => true,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => true,
'return_assignment' => true,
'single_blank_line_at_eof' => true,
'single_line_comment_style' => true,
'ternary_to_null_coalescing' => true,
'yoda_style' => ['equal' => true, 'identical' => true, 'less_and_greater' => true],
'void_return' => true,
'elseif' => true,
'encoding' => true,
'line_ending' => true,
'lowercase_cast' => true,
'lowercase_constants' => true,
'native_constant_invocation' => false,
'method_argument_space' => ['ensure_fully_multiline' => true],
])
->setIndent("\t")
->setLineEnding("\n")
->setFinder($finder)
->setUsingCache(true)
->setRiskyAllowed(true);