-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
36 lines (33 loc) · 1.17 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
35
36
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->append([__FILE__])
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setUsingCache(true)
->setRules([
'@DoctrineAnnotation' => true,
'@PHP71Migration' => true,
'@PHPUnit100Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'declare_strict_types' => true,
'heredoc_to_nowdoc' => true,
'no_superfluous_phpdoc_tags' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'phpdoc_separation' => [
'groups' => [['Common\\*']],
],
'self_static_accessor' => true,
'single_line_throw' => false,
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays']],
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
// PHP 7 compatibility
'get_class_to_class_keyword' => false,
'modernize_strpos' => false,
])
->setRiskyAllowed(true)
->setFinder($finder)
;