-
Notifications
You must be signed in to change notification settings - Fork 22
/
.php_cs
30 lines (26 loc) · 689 Bytes
/
.php_cs
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
;
$rules = [
'@Symfony' => true,
'list_syntax' => ['syntax' => 'short'],
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
// Risky checks
'psr4' => true,
'ereg_to_preg' => true,
'is_null' => true,
'non_printable_character' => true,
'random_api_migration' => true,
'ternary_to_null_coalescing' => true,
];
return PhpCsFixer\Config::create()
->setRules($rules)
->setUsingCache(false)
->setFinder($finder)
->setRiskyAllowed(true)
;