forked from sclable/xml-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
59 lines (55 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$fixers = [
'@Symfony' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'concat_space' => [
'spacing' => 'one',
],
'yoda_style' => false,
'dir_constant' => false,
'phpdoc_indent' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_no_empty_return' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => true,
'general_phpdoc_annotation_remove' => [
'author'
],
'void_return' => false,
'single_trait_insert_per_statement' => false,
'ternary_to_null_coalescing' => true,
'pow_to_exponentiation' => false,
'random_api_migration' => false,
'declare_strict_types' => false,
'phpdoc_no_alias_tag' => [
'replacements' => [
'type' => 'var',
'link' => 'see',
],
],
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => 'This file is part of the Sclable Xml Lint Package.
@copyright (c) ' . date('Y') . ' Sclable Business Solutions GmbH
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.',
'location' => 'after_declare_strict',
//'separate' => 'bottom',
],
];
return PhpCsFixer\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->in(__DIR__ . '/bin')
// Note: The pattern is seen relative from one of the `->in()`
// directories. And works for files too this way.
->notPath('bootstrap.php')
)
->setRules($fixers);