-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
22 lines (20 loc) · 769 Bytes
/
.php-cs-fixer.php
File metadata and controls
22 lines (20 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;
return (new PhpCsFixer\Config())
->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,
'multiline_whitespace_before_semicolons' => false,
'phpdoc_add_missing_param_annotation' => true,
'single_trait_insert_per_statement' => false
])
->setUsingCache(false)
->setFinder($finder)
;