This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
forked from rplessl/roundcube-vacation-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs53
56 lines (54 loc) · 2.01 KB
/
.php_cs53
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
<?php
$config = PhpCsFixer\Config::create()
// ->setIndent(" ")
// ->setLineEnding("\n")
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRiskyAllowed(true)
->setRules([
'array_syntax' => ['syntax' => 'long'],
'list_syntax' => ['syntax' => 'long'],
// the following will re-format files
'@PHP70Migration' => false,
'@PHP71Migration' => false,
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'method_argument_space' => ['ensure_fully_multiline' => true],
'native_constant_invocation' => false,
'native_function_invocation' => false,
'no_alternative_syntax' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'no_short_echo_tag' => false,
'no_superfluous_elseif' => true,
'no_unneeded_control_parentheses' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_ordered_covers' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_strict' => true,
'php_unit_test_class_requires_covers' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => true,
'pow_to_exponentiation' => false,
'random_api_migration' => true,
'single_line_comment_style' => true,
'string_line_ending' => true,
'strict_comparison' => false,
'strict_param' => false,
'yoda_style' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;
return $config;