forked from rollerworks/PasswordStrengthValidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
34 lines (30 loc) · 1 KB
/
.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
<?php
$header = <<<EOF
This file is part of the RollerworksPasswordStrengthValidator package.
(c) Sebastiaan Stok <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unreachable_default_argument_value' => false,
'braces' => ['allow_single_line_closure' => true],
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
'yoda_style' => false,
'native_function_invocation' => false,
'phpdoc_types_order' => [
'null_adjustment' => 'none',
'sort_algorithm' => 'none',
],
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
)
;