-
Notifications
You must be signed in to change notification settings - Fork 83
/
.php-cs-fixer.dist.php
32 lines (30 loc) · 992 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
<?php
$finder = (new PhpCsFixer\Finder())
->in([
__DIR__.'/src',
__DIR__.'/tests',
]);
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHP71Migration:risky' => true,
'@PHP73Migration' => true,
'linebreak_after_opening_tag' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'ordered_imports' => [
'imports_order' => ['class', 'const', 'function'],
],
'yoda_style' => false,
'static_lambda' => true,
'align_multiline_comment' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
])
->setFinder($finder);