forked from proget-hq/phpstan-yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
28 lines (26 loc) · 767 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.DIRECTORY_SEPARATOR.'src')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PHP71Migration' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => [
'importsOrder' => null,
'sortAlgorithm' => 'alpha',
],
'phpdoc_order' => true,
'yoda_style' => null,
// risky -->
'strict_param' => true,
])
->setFinder($finder)
;