-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.php-cs-fixer.dist
38 lines (37 loc) · 1.03 KB
/
.php-cs-fixer.dist
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
return (new PhpCsFixer\Config())
->setRules([
'@PhpCsFixer' => true,
'@PSR12' => true,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line',
],
'php_unit_internal_class' => false,
'php_unit_test_class_requires_covers' => false,
'yoda_style' => false,
'php_unit_method_casing' => [
'case' => 'snake_case'
],
'single_line_comment_style' => [
'comment_types' => ['hash']
]
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'.ci',
'.phan',
'.vscode',
'vendor',
'storage',
'node_modules',
])
->notName('*.dist')
->notName('*.md')
->notName('*.xml')
->notName('*.yml')
->notName('_ide_helper.php')
->notName('*.json')
->notName('*.lock')
);