-
Notifications
You must be signed in to change notification settings - Fork 147
/
.php-cs-fixer.php
34 lines (31 loc) · 1.16 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
use PhpCsFixer as CS;
$finder = CS\Finder::create()
->files()
->name(__FILE__)
->name('*.php')
->name('*.php.dist')
->notPath('resources/templates')
->in(__DIR__)
;
return
(new CS\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'cast_spaces' => true,
'concat_space' => ['spacing' => 'one'],
'native_function_casing' => true,
'no_alias_functions' => true,
'no_blank_lines_after_class_opening' => true,
'no_leading_import_slash' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'phpdoc_no_access' => true,
'self_accessor' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;