-
Notifications
You must be signed in to change notification settings - Fork 11
/
.php_cs
42 lines (42 loc) · 1.85 KB
/
.php_cs
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
<?php
$finder = \PhpCsFixer\Finder::create();
$finder
->in([
__DIR__ . '/src',
])
->files()
->name('*.php');
return \PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'psr0' => true,
'align_multiline_comment' => true,
'dir_constant' => true,
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_superfluous_elseif' => true,
'no_unneeded_final_method' => true,
'no_unneeded_curly_braces' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'php_unit_construct' => true,
'phpdoc_order' => true,
'pow_to_exponentiation' => true,
'random_api_migration' => true,
'phpdoc_types_order' => true,
'single_quote' => true,
'standardize_not_equals' => true,
'trailing_comma_in_multiline_array' => true,
'include' => true,
'array_syntax' => [
'syntax' => 'short',
],
])
->setFinder($finder);