forked from briannesbitt/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
47 lines (40 loc) · 1.05 KB
/
.php_cs
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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__);
$header = <<< EOF
This file is part of the Carbon package.
(c) Brian Nesbitt <brian@nesbot.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$fixers = array(
'-psr0',
'extra_empty_lines',
'header_comment',
'long_array_syntax',
'no_empty_lines_after_phpdocs',
'phpdoc_align',
'phpdoc_indent',
'phpdoc_inline_tag',
'phpdoc_no_access',
'phpdoc_no_package',
'phpdoc_order',
'phpdoc_scalar',
'phpdoc_separation',
'phpdoc_to_comment',
'phpdoc_trim',
'phpdoc_type_to_var',
'phpdoc_types',
'phpdoc_var_without_name',
'return',
'spaces_cast',
'unalign_equals',
'unused_use',
'whitespacy_lines',
);
return Symfony\CS\Config\Config::create()
->finder($finder)
->fixers($fixers)
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->setUsingCache(true);