-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
31 lines (28 loc) · 974 Bytes
/
.php-cs-fixer.php
File metadata and controls
31 lines (28 loc) · 974 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
<?php
$config = new PhpCsFixer\Config();
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->files();
return $config
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => true,
'logical_operators' => true,
'constant_case' => true,
'concat_space' => ['spacing' => 'one'],
'is_null' => true,
'modernize_types_casting' => true,
'native_constant_invocation' => true,
'native_function_invocation' => ['include' => ['@all']],
'psr_autoloading' => true,
'strict_comparison' => true,
'ternary_to_null_coalescing' => true,
'void_return' => true,
'types_spaces' => ['space' => 'single'],
]
)
->setFinder($finder);