forked from FACT-Finder-Web-Components/shopware6-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
33 lines (30 loc) · 1.16 KB
/
.php_cs.dist
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
<?php
use PhpCsFixer\Config;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return Config::create()
->setRiskyAllowed(true)
->setHideProgress(true)
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => ['statements' => ['break', 'continue', 'declare', 'throw', 'try']],
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'increment_style' => ['style' => 'post'],
'no_superfluous_phpdoc_tags' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'strict_comparison' => true,
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
])
->setFinder($finder);