-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php_cs
More file actions
26 lines (24 loc) · 765 Bytes
/
.php_cs
File metadata and controls
26 lines (24 loc) · 765 Bytes
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
<?php
$excluded_folders = [
'vendor',
];
$finder = PhpCsFixer\Finder::create()
->exclude($excluded_folders)
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'binary_operator_spaces' => ['align_double_arrow' => true],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => true,
'ordered_imports' => [
'sortAlgorithm' => 'length',
],
'phpdoc_order' => true,
'no_unused_imports' => true,
'array_syntax' => [
'syntax' => 'short',
],
])
->setFinder($finder);