This repository was archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
67 lines (67 loc) · 2.09 KB
/
.php_cs.dist
File metadata and controls
67 lines (67 loc) · 2.09 KB
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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('build')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
],
'class_attributes_separation' => true,
'class_definition' => [
'single_line' => true,
],
'declare_equal_normalize' => [
'space' => 'single',
],
'declare_strict_types' => true,
'include' => true,
'is_null' => true,
'linebreak_after_opening_tag' => true,
'logical_operators' => true,
'lowercase_cast' => true,
'lowercase_constants' => false,
'lowercase_static_reference' => true,
'magic_method_casing' => true,
'native_function_invocation' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => false,
'no_closing_tag' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => [
'tokens' => [
'extra',
'curly_brace_block',
'parenthesis_brace_block',
'square_brace_block',
'return',
'throw',
'use',
'use_trait',
],
],
'no_trailing_whitespace_in_comment' => true,
'no_unneeded_control_parentheses' => [
'statements' => [
'break',
'clone',
'continue',
'echo_print',
'return',
'switch_case',
'yield',
]
],
'no_unused_imports' => true,
'single_blank_line_at_eof' => true,
'single_quote' => true,
'strict_param' => true,
'trailing_comma_in_multiline_array' => true,
])
->setFinder($finder);