/
.php_cs
24 lines (21 loc) · 897 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
<?php
use PhpCsFixer as CS;
$finder = CS\Finder::create()->in(__DIR__);
return
CS\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'native_function_casing' => true,
'no_blank_lines_after_class_opening' => true,
'no_unused_imports' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'phpdoc_no_access' => true,
'self_accessor' => true
])
->setFinder($finder)
;