-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
28 lines (26 loc) · 1015 Bytes
/
.php-cs-fixer.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
$config = new PhpCsFixer\Config();
return $config
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder($finder)
->setUsingCache(false)
->setRules([
'simplified_null_return' => false,
'concat_space' => ['spacing' => 'one'],
'phpdoc_summary' => false,
'linebreak_after_opening_tag' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'declare_strict_types' => true,
'no_superfluous_phpdoc_tags' => true,
'yoda_style' => false,
'phpdoc_types_order' => ['null_adjustment' => 'none', 'sort_algorithm' => 'none'],
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'arrays', 'match', 'parameters']],
'single_line_throw' => false,
'visibility_required' => false,
'native_function_invocation' => true,
]);