-
Notifications
You must be signed in to change notification settings - Fork 93
/
.php-cs-fixer.dist.php
34 lines (31 loc) · 1.15 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->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 <[email protected]>
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'],
'heredoc_to_nowdoc' => true,
'heredoc_indentation' => ['indentation' => 'same_as_start'],
'single_line_throw' => false,
'ternary_to_null_coalescing' => true,
'global_namespace_import' => false,
])
->setFinder($finder);