-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
47 lines (44 loc) · 1.54 KB
/
.php-cs-fixer.dist.php
File metadata and controls
47 lines (44 loc) · 1.54 KB
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 = (new PhpCsFixer\Finder())
->in(__DIR__)
->name(['update_cucumber', 'update_i18n'])
->notPath('i18n.php');
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'header_comment' => [
'header' => <<<'TEXT'
This file is part of the Behat Gherkin Parser.
(c) Konstantin Kudryashov <ever.zet@gmail.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
TEXT
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_order' => [
'order' => [
'phpstan-import-type',
'phpstan-type',
'param',
'return',
'throws',
],
],
'heredoc_to_nowdoc' => true,
'heredoc_indentation' => ['indentation' => 'same_as_start'],
'single_line_throw' => false,
'ternary_to_null_coalescing' => true,
'global_namespace_import' => false,
'phpdoc_to_comment' => [ // Keep as a phpdoc if it contains the `@var` annotation
'ignored_tags' => ['var'],
],
])
->setFinder($finder);