-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
23 lines (21 loc) · 836 Bytes
/
.php_cs.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$finder = PhpCsFixer\Finder::create()->in([__DIR__.'/src', __DIR__.'/test']);
return PhpCsFixer\Config::create()->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['allow_single_line_closure' => true],
'align_multiline_comment' => true,
'new_with_braces' => false,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'single_line_comment_style' => true,
]);