-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
27 lines (25 loc) · 865 Bytes
/
.php-cs-fixer.php
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src');
return (new PhpCsFixer\Config())
->setRules(
[
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_to_comment' => false,
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
'operators' => [
'??' => 'single_space',
'&&' => 'single_space',
'||' => 'single_space',
'==' => 'single_space',
'===' => 'single_space',
'!=' => 'single_space',
'!==' => 'single_space',
'=>' => 'align_single_space',
],
],
]
)
->setFinder($finder);