-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
41 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
<?php
/*
* This file is part of the Viterbit pdfimages-extractor package.
*
* (c) Viterbit <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$header = 'This file is part of the Viterbit vbApp package.
(c) Viterbit <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.';
return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setUsingCache(false)
->setRules(
[
'@Symfony' => true,
'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'single_quote' => true,
'linebreak_after_opening_tag' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'ternary_to_null_coalescing' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'header_comment' => ['header' => $header],
]
)
->setCacheFile(__DIR__.'/.php_cs.cache')
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['config', 'var', 'bin', 'public'])
);