-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.dist
46 lines (39 loc) · 1.12 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
<?php
/*
* This file is part of michaelbutler/phposh.
* Source: https://github.com/michaelbutler/phposh
*
* (c) Michael Butler <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file named LICENSE.
*/
$header = <<<'EOF'
This file is part of michaelbutler/phposh.
Source: https://github.com/michaelbutler/phposh
(c) Michael Butler <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file named LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude('tests/Data')
->in([
'./src',
'./tests',
])
->append([__DIR__ . '/.php_cs.dist'])
;
$config = PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'protected_to_private' => false,
'final_internal_class' => false,
'header_comment' => ['header' => $header],
'list_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
])
->setRiskyAllowed(false)
->setFinder($finder)
;
return $config;