-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php_cs.dist
More file actions
28 lines (25 loc) · 741 Bytes
/
.php_cs.dist
File metadata and controls
28 lines (25 loc) · 741 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
27
28
<?php
$excluded_folders = [
'vendor',
];
$finder = PhpCsFixer\Finder::create()
->exclude($excluded_folders)
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'phpdoc_order' => true,
'phpdoc_align' => false,
'new_with_braces' => false,
'unary_operator_spaces' => false,
'linebreak_after_opening_tag' => true,
'array_syntax' => ['syntax' => 'short'],
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'binary_operator_spaces' => [],
])
->setFinder($finder);