-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
42 lines (39 loc) · 1.12 KB
/
.php-cs-fixer.dist.php
File metadata and controls
42 lines (39 loc) · 1.12 KB
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
42
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->in(__DIR__ . '/examples')
->append([__FILE__])
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'protected_to_private' => false,
'combine_consecutive_unsets' => true,
'linebreak_after_opening_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'native_function_invocation' => [
'include' => [
'@all',
],
],
'ordered_class_elements' => true,
'ordered_imports' => true,
'strict_comparison' => false,
'strict_param' => false,
'concat_space' => [
'spacing' => 'one',
],
'php_unit_method_casing' => [
'case' => 'snake_case',
],
],
)
->setFinder($finder)
;