-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php_cs.dist
39 lines (36 loc) · 1 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
<?php
$header = <<<EOF
GpsLab component.
@author Peter Gribanov <[email protected]>
@license http://opensource.org/licenses/MIT
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
],
'class_definition' => [
'multi_line_extends_each_single_line' => true,
],
'no_superfluous_phpdoc_tags' => false,
'single_line_throw' => false,
'blank_line_after_opening_tag' => false,
'yoda_style' => false,
'phpdoc_no_empty_return' => false,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'list_syntax' => [
'syntax' => 'short',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->notPath('bootstrap.php')
)
;