-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
40 lines (37 loc) · 993 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
$fixers = [
'@Symfony' => true,
'array_syntax' => [
'syntax' => 'short',
],
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => [
'sortAlgorithm' => 'length',
],
'phpdoc_indent' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_no_alias_tag' => [
// 'property-read' => 'property',
// 'property-write' => 'property',
'type' => 'var',
'link' => 'see',
],
'no_superfluous_phpdoc_tags' => false,
'concat_space' => [
'spacing' => 'one',
],
'yoda_style' => false,
];
return PhpCsFixer\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
// Note: The pattern is seen relative from one of the `->in()`
// directories. And works for files too this way.
//->notPath('exampleDirectory/exampleSubDirectory/')
)
->setRules($fixers);