11<?php
22
33$ fixers = [
4- '@Symfony ' => true ,
5- 'array_syntax ' => array ('syntax ' => 'short ' ),
6- 'combine_consecutive_unsets ' => true ,
7- 'no_useless_else ' => true ,
8- 'no_useless_return ' => true ,
9- 'ordered_imports ' => ['sortAlgorithm ' => 'length ' ],
10- 'phpdoc_indent ' => false ,
11- 'phpdoc_annotation_without_dot ' => false ,
12- 'phpdoc_no_empty_return ' => false ,
13- 'concat_space ' => [
14- 'spacing ' => 'one ' ,
4+ '@Symfony ' => true ,
5+ 'array_syntax ' => array ('syntax ' => 'short ' ),
6+ 'combine_consecutive_unsets ' => true ,
7+ 'no_useless_else ' => true ,
8+ 'no_useless_return ' => true ,
9+ 'ordered_imports ' => ['sortAlgorithm ' => 'length ' ],
10+ 'concat_space ' => [
11+ 'spacing ' => 'one ' ,
12+ ],
13+ 'yoda_style ' => false ,
14+ 'dir_constant ' => false ,
15+ 'phpdoc_indent ' => false ,
16+ 'phpdoc_annotation_without_dot ' => false ,
17+ 'phpdoc_no_empty_return ' => true ,
18+ 'phpdoc_add_missing_param_annotation ' => true ,
19+ 'phpdoc_order ' => true ,
20+ 'phpdoc_types_order ' => true ,
21+ 'general_phpdoc_annotation_remove ' => [
22+ 'author '
23+ ],
24+ 'void_return ' => false ,
25+ 'single_trait_insert_per_statement ' => false ,
26+ 'ternary_to_null_coalescing ' => true ,
27+ 'pow_to_exponentiation ' => false ,
28+ 'random_api_migration ' => false ,
29+ 'declare_strict_types ' => false ,
30+ 'phpdoc_no_alias_tag ' => [
31+ 'replacements ' => [
32+ 'type ' => 'var ' ,
33+ 'link ' => 'see ' ,
1534 ],
35+ ],
36+ 'header_comment ' => [
37+ 'commentType ' => 'PHPDoc ' ,
38+ 'header ' => 'This file is part of the Sclable Xml Lint Package.
39+
40+ @copyright (c) ' . date ('Y ' ) . ' Sclable Business Solutions GmbH
41+
42+ For the full copyright and license information, please view the LICENSE
43+ file that was distributed with this source code. ' ,
44+ 'location ' => 'after_declare_strict ' ,
45+ //'separate' => 'bottom',
46+ ],
1647];
1748
1849return PhpCsFixer \Config::create ()
@@ -21,5 +52,8 @@ return PhpCsFixer\Config::create()
2152 ->in (__DIR__ . '/src ' )
2253 ->in (__DIR__ . '/tests ' )
2354 ->in (__DIR__ . '/bin ' )
55+ // Note: The pattern is seen relative from one of the `->in()`
56+ // directories. And works for files too this way.
57+ ->notPath ('bootstrap.php ' )
2458 )
2559 ->setRules ($ fixers );
0 commit comments