This repository has been archived by the owner on Nov 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
75 lines (72 loc) · 2.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
$excluded_folders = [
'node_modules',
'storage',
'vendor',
];
$finder = PhpCsFixer\Finder::create()
->exclude($excluded_folders)
->notName('AcceptanceTester.php')
->notName('FunctionalTester.php')
->notName('UnitTester.php')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'psr0' => false,
'@PSR2' => true,
'blank_line_after_namespace' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'declare',
'return',
'throw',
'try',
],
],
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => true,
'class_definition' => true,
'concat_space' => ['spacing' => 'none'],
'elseif' => true,
'function_declaration' => true,
'indentation_type' => true,
'line_ending' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'method_argument_space' => [
'ensure_fully_multiline' => true,
],
'no_break_comment' => true,
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
'no_trailing_whitespace' => true,
'no_whitespace_in_blank_line' => true,
'no_trailing_whitespace_in_comment' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'no_unneeded_control_parentheses' => true,
'ordered_imports' => true,
'phpdoc_summary' => true,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => [
'elements' => ['property'],
],
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_quote' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline_array' => true,
'visibility_required' => true,
'encoding' => true,
'full_opening_tag' => true,
'whitespace_after_comma_in_array' => true,
'yoda_style' => true,
])
->setFinder($finder)
;