-
Notifications
You must be signed in to change notification settings - Fork 5
/
.php-cs-fixer.dist.php
35 lines (32 loc) · 1.05 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
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/migrations')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'no_unneeded_final_method' => false,
'dir_constant' => true,
'modernize_types_casting' => true,
'echo_tag_syntax' => ['format' => 'long'],
'no_useless_else' => true,
'no_useless_return' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
'declare_strict_types' => true,
])
->setFinder($finder)
->setCacheFile(__DIR__.'/var/.php_cs.cache')
;