-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
35 lines (33 loc) · 1.04 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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('var')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'encoding' => false,
'no_unused_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'no_superfluous_phpdoc_tags' => ['allow_mixed' => false],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last'],
'phpdoc_no_alias_tag' => [
'property-read' => 'property',
'property-write' => 'property',
'type' => 'var'
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
])
->setFinder($finder)
;