forked from tchapi/davis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
22 lines (20 loc) · 775 Bytes
/
.php_cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('var')
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'ordered_imports' => true, // Order "use" alphabetically
'array_syntax' => ['syntax' => 'short'], // Replace array() by []
'no_useless_return' => true, // Keep return null;
'phpdoc_order' => true, // Clean up the /** php doc */
'linebreak_after_opening_tag' => true,
'no_multiline_whitespace_before_semicolons' => true,
'phpdoc_add_missing_param_annotation' => true,
'single_trait_insert_per_statement' => false
])
->setUsingCache(false)
->setFinder($finder)
;