-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
33 lines (30 loc) · 971 Bytes
/
.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
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'declare_strict_types' => true,
'no_superfluous_phpdoc_tags' => true,
'nullable_type_declaration_for_default_null_value' => false,
'assign_null_coalescing_to_coalesce_equal' => true,
'php_unit_method_casing' => [
'case' => 'snake_case',
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'not_operator_with_successor_space' => true,
'concat_space' => [
'spacing' => 'one',
],
])
->setLineEnding("\n")
->setUsingCache(false)
->setRiskyAllowed(true)
->setFinder($finder);