-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.php-cs-fixer.dist.php
49 lines (45 loc) · 1.4 KB
/
.php-cs-fixer.dist.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
49
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
$config = (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());
return $config->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
],
'array_push' => true,
'date_time_immutable' => true,
'declare_strict_types' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => true,
'function_typehint_space' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'implode_call' => true,
'modernize_strpos' => true,
'no_alias_functions' => true,
'no_alias_language_construct_call' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'no_useless_return' => true,
'return_assignment' => true,
'short_scalar_cast' => true,
'simplified_null_return' => true,
'single_line_throw' => true,
'strict_comparison' => true,
'strict_param' => true,
'use_arrow_functions' => true,
'void_return' => true,
])->setFinder($finder);