forked from php-defer/php-defer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
42 lines (36 loc) · 1.25 KB
/
.php-cs-fixer.dist.php
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
<?php
/*
* This file is part of the php-defer/php-defer package.
*
* (c) Bartłomiej Krukowski <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$finder = PhpCsFixer\Finder::create()
->in(['src', 'tests'])
->name(['*.php', '*.phpt'])
->notName(['change_returned_value.phpt'])
;
$header = <<<'HEADER'
This file is part of the php-defer/php-defer package.
(c) Bartłomiej Krukowski <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
HEADER;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'header_comment' => ['header' => $header],
'native_function_invocation' => ['exclude' => [], 'include' => ['@internal'], 'scope' => 'all', 'strict' => true],
'native_constant_invocation' => true,
'array_syntax' => ['syntax' => 'short'],
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
'static_lambda' => false,
])
->setFinder($finder)
;