This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
forked from themosis/themosis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
66 lines (63 loc) · 1.54 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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
/**
* Plugin PHP code fixer.
*/
$finder = Finder::create()
->exclude([
'bin',
'htdocs',
'node_modules'
])
->in([
'app',
'bootstrap',
'config',
'tests',
]);
return Config::create()
->setFinder($finder)
->setRules([
'@PSR2' => true,
'strict_param' => false,
'array_syntax' => [
'syntax' => 'short'
],
'cast_spaces' => [
'space' => 'single'
],
'concat_space' => [
'spacing' => 'none'
],
'ordered_imports' => true,
'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
'blank_line_before_return' => true,
'no_whitespace_in_blank_line' => true,
'blank_line_after_namespace' => true,
'single_blank_line_before_namespace' => true,
'single_line_after_imports' => true,
'blank_line_after_opening_tag' => true,
'no_empty_statement' => true,
'trailing_comma_in_multiline_array' => false,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'phpdoc_trim' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_align' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_return_self_reference' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'not_operator_with_successor_space' => true,
'return_type_declaration' => [
'space_before' => 'none'
],
'semicolon_after_instruction' => true,
'trim_array_spaces' => true,
'ternary_operator_spaces' => true
]);