-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
33 lines (31 loc) · 805 Bytes
/
.php_cs
File metadata and controls
33 lines (31 loc) · 805 Bytes
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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('README.md')
->notName('composer.*')
->notName('.scrutinizer.yml')
->notName('.travis.yml')
->notName('.php_cs')
->notName('rtl.css')
->notName('style.css')
->notName('screenshot.png')
->exclude('vendor')
->exclude('tests')
->exclude('wp-content')
->exclude('views')
->exclude('languages')
->exclude('assets')
->exclude('tasks')
->in(__DIR__);
return Symfony\CS\Config\Config::create()
// use default PSR-2_LEVEL:
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(
[
'ordered_use',
'short_array_syntax',
'strict',
'strict_param',
'phpdoc_order',
]
)
->finder($finder);