-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
22 lines (20 loc) · 979 Bytes
/
.php-cs-fixer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->name(['*.php', '*.twig']);
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'blank_line_after_namespace' => true,
'elseif' => true,
'encoding' => true,
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal'
]
])
->setFinder($finder);