-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
32 lines (30 loc) · 1019 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
32 lines (30 loc) · 1019 Bytes
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 = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->exclude('node_modules')
->notPath('src/Model/JobContractType.php') // cs-fixer not ready yet for enums with traits
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'phpdoc_to_comment' => ['ignored_tags' => [
// https://github.com/phpstan/phpstan/issues/5465
'use',
]],
'declare_strict_types' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'no_superfluous_phpdoc_tags' => true,
'ordered_imports' => true,
'phpdoc_summary' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_order' => true,
'single_line_throw' => false,
'simplified_null_return' => false,
'yoda_style' => [],
])
;