-
Notifications
You must be signed in to change notification settings - Fork 6
/
.php_cs.dist
38 lines (35 loc) · 976 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
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
$header = <<<EOF
GpsLab component.
@author Peter Gribanov <[email protected]>
@copyright Copyright (c) 2011, Peter Gribanov
@license http://opensource.org/licenses/MIT
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => [
'syntax' => 'short',
],
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
],
'class_definition' => [
'multiLineExtendsEachSingleLine' => true,
],
'no_superfluous_phpdoc_tags' => false,
'blank_line_after_opening_tag' => false,
'phpdoc_no_empty_return' => false,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->notPath('bootstrap.php')
)
;