-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
44 lines (41 loc) · 1.23 KB
/
.php-cs-fixer.dist.php
File metadata and controls
44 lines (41 loc) · 1.23 KB
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
<?php
declare(strict_types=1);
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
__DIR__ . '/node_modules',
__DIR__ . '/vendor',
])
->ignoreVCSIgnored(true)
->ignoreDotFiles(false)
;
return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'@PER-CS:risky' => true,
'@PHP80Migration:risky' => true,
'@PHP82Migration' => true,
'blank_line_before_statement' => true,
'method_chaining_indentation' => true,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'new_line_for_chained_calls',
],
'native_function_invocation' => true,
'native_constant_invocation' => true,
'no_unused_imports' => true,
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
'sort_algorithm' => 'alpha',
],
'ordered_interfaces' => [
'case_sensitive' => true,
],
'ordered_types' => [
'case_sensitive' => true,
'null_adjustment' => 'always_last',
],
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
])
->setRiskyAllowed(true)
->setFinder($finder)
;