-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
48 lines (40 loc) · 1.27 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
40
41
42
43
44
45
46
47
48
<?php
$header = <<<HEADER
Package: PHP Bitaps API
(c) Eldar Gazaliev <eldarqa@gmx.de>
Link: <https://github.com/MyZik>
For the full copyright and license information, please view the LICENSE file
that was distributed with this source code.
HEADER;
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(['src', 'tests']);
$config = new PhpCsFixer\Config();
return $config->setRules(
[
'@PSR2' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'compact_nullable_typehint' => true,
'logical_operators' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'return',
'throw',
]
],
'header_comment' => [
'header' => $header,
'commentType' => 'comment',
'separate' => 'both',
],
'void_return' => false,
]
)
->setFinder($finder);