-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.dist.php
32 lines (30 loc) · 1.11 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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('var')
->exclude('vendor')
->exclude('node_modules')
->notName('Configuration.php')
->in(__DIR__);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PhpCsFixer' => true,
'@Symfony' => true,
'@PER-CS' => true,
'@DoctrineAnnotation' => true,
'php_unit_test_class_requires_covers' => false,
'php_unit_internal_class' => false,
'heredoc_to_nowdoc' => false,
'string_implicit_backslashes' => false,
'explicit_indirect_variable' => false,
'explicit_string_variable' => false,
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
'doctrine_annotation_array_assignment' => false,
'yoda_style' => ['equal' => false, 'identical' => false],
'increment_style' => ['style' => 'post'],
'concat_space' => false,
'single_quote' => false,
'method_argument_space' => ['on_multiline' => 'ignore'],
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
])
->setFinder($finder);