forked from hwi/HWIOAuthBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.php
41 lines (37 loc) · 1.33 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
$header = <<<EOF
This file is part of the HWIOAuthBundle package.
(c) Hardware Info <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return (new PhpCsFixer\Config())
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration' => true,
'@PHPUnit60Migration:risky' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'heredoc_to_nowdoc' => false,
'header_comment' => ['header' => $header],
'no_unreachable_default_argument_value' => false,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_method_casing' => ['case' => 'camel_case'],
'php_unit_set_up_tear_down_visibility' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'allow_unused_params' => false,
],
'phpdoc_types_order' => false,
))
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
)
;