-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs_config.php
38 lines (36 loc) · 975 Bytes
/
.php_cs_config.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
35
36
37
38
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/')
->exclude('_/library/')
->exclude('deploy/')
->exclude('node_modules/')
->exclude('var/')
;
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@DoctrineAnnotation' => true,
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'@PHP82Migration' => true,
'blank_line_before_statement' => false,
'braces_position' => [
'functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'same_line',
],
'increment_style' => [
'style' => 'post',
],
'single_quote' => false,
'yoda_style' => [
'always_move_variable' => false,
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
])
->setFinder($finder)
;