forked from artgris/FileManagerBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
32 lines (31 loc) · 829 Bytes
/
.php-cs-fixer.php
File metadata and controls
32 lines (31 loc) · 829 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
32
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->ignoreDotFiles(true)
->ignoreVCS(true)
->exclude(array('build', 'vendor'))
->files()
->name('*.php')
;
return (new PhpCsFixer\Config())
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'short'),
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
]
],
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_summary' => false,
'strict_comparison' => true,
))
;