-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
executable file
·48 lines (44 loc) · 1.17 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create();
$finder = Symfony\Component\Finder\Finder::create()
->in([
__DIR__.'/app',
])
->exclude([
__DIR__.'/storage',
])
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'@PHP82Migration' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'blank_line_before_statement' => true,
'comment_to_phpdoc' => false,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'phpdoc_add_missing_param_annotation' => true,
'no_superfluous_phpdoc_tags' => false,
'phpdoc_align' => [
'align' => 'left',
],
'no_unused_imports' => true,
'single_line_comment_style' => false,
'strict_comparison' => false,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'new_line_for_chained_calls',
],
])
->setFinder($finder)
;