-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
37 lines (33 loc) · 970 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
34
35
36
37
<?php
declare(strict_types=1);
if (!file_exists(__DIR__.'/src')) {
exit(0);
}
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setRules([
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHPUnit84Migration:risky' => true,
'@PSR12' => true,
'@PSR12:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'group_import' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
'php_unit_test_class_requires_covers' => false,
'single_import_per_statement' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/migrations')
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->append([__FILE__])
)
;
return $config;