forked from hiqdev/hipanel-module-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
57 lines (54 loc) · 2.35 KB
/
.php_cs
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
<?php
$header = <<<EOF
Client module for HiPanel
@link https://github.com/hiqdev/hipanel-module-client
@package hipanel-module-client
@license BSD-3-Clause
@copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
EOF;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
'header_comment' => [
'header' => $header,
'separate' => 'bottom',
'location' => 'after_declare_strict',
'commentType' => 'PHPDoc',
],
'binary_operator_spaces' => [
'default' => null,
],
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
'blank_line_before_return' => false,
'phpdoc_align' => false,
'phpdoc_scalar' => false,
'phpdoc_separation' => false,
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
'method_argument_space' => false,
'ereg_to_preg' => true,
'blank_line_after_opening_tag' => true,
'single_blank_line_before_namespace' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'pre_increment' => true,
'strict_comparison' => true,
'strict_param' => true,
'no_multiline_whitespace_before_semicolons' => true,
'semicolon_after_instruction' => false,
'yoda_style' => false,
))
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('vendor')
->notPath('runtime')
->notPath('web/assets')
->notPath('public/assets')
->notPath('tests/_support/_generated')
)
;