-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
34 lines (32 loc) · 1.1 KB
/
.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
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
;
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@Symfony' => true,
'@PSR12' => true,
'binary_operator_spaces' => ['default' => null, 'operators' => ['=>' => 'align']],
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'no_alias_functions' => true,
'no_useless_sprintf' => true,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha'
],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'self_accessor' => true,
'single_line_throw' => false,
'visibility_required' => ['elements' => ['property', 'method']], // removed 'const' since we still support PHP 7.0 for now
'yoda_style' => false,
])
->setFinder($finder)
;