-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs
25 lines (22 loc) · 792 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
23
24
25
<?php
$excluded_folders = [
'node_modules',
'storage',
'vendor',
];
$finder = PhpCsFixer\Finder::create()
->exclude($excluded_folders)
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => ['align_double_arrow' => true],
'array_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sort_algorithm' => 'length'],
'phpdoc_order' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
])
->setFinder($finder)
;