forked from fecshop/yii2_fecshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
30 lines (25 loc) · 794 Bytes
/
.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
<?php
$header = <<<'EOF'
FecShop file.
@link http://www.fecshop.com/
@copyright Copyright (c) 2016 FecShop Software LLC
@license http://www.fecshop.com/license/
EOF;
$finder = PhpCsFixer\Finder::create()
->in('./services')
->notName('MobileDetect.php')
;
$config = PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'class_attributes_separation' => ['elements' => ['const', 'method', 'property']],
'header_comment' => ['header' => $header],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'single_line_comment_style' => true,
])
->setFinder($finder)
;
return $config;