-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
45 lines (41 loc) · 1.48 KB
/
.php-cs-fixer.dist.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
42
43
44
45
<?php
declare(strict_types=1);
// Great tool for configuration: https://mlocati.github.io/php-cs-fixer-configurator/
$finder = PhpCsFixer\Finder::create()
->in('.')
->exclude('Resources/skeleton');
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PSR2' => true,
'@DoctrineAnnotation' => true,
'@PHP71Migration' => true,
'@PHP73Migration' => true,
'@PHP74Migration' => true,
'@PHP80Migration' => true,
'@PHP81Migration' => true,
'@PHPUnit60Migration:risky' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
],
],
'declare_strict_types' => true,
'fopen_flags' => false,
'heredoc_indentation' => false,
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
],
'ordered_imports' => true,
'protected_to_private' => false,
'trailing_comma_in_multiline' => [
'elements' => ['arrays', 'arguments', 'parameters'],
],
'single_line_throw' => false,
])
->setFinder($finder);