forked from alterphp/EasyAdminExtensionBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
32 lines (30 loc) · 840 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
30
31
32
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->ignoreDotFiles(true)
->ignoreVCS(true)
->files()
->name('*.php')
;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'@PHP70Migration' => true,
'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => false,
],
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_summary' => false,
'strict_comparison' => false,
'native_function_invocation'=> true
])
;