forked from gpslab/geoip2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
39 lines (36 loc) · 1007 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
39
<?php
declare(strict_types=1);
$header = <<<EOF
GpsLab component.
@author Peter Gribanov <[email protected]>
@copyright Copyright (c) 2017, 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,
'yoda_style' => false,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->notPath('bootstrap.php')
)
;