-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_cs.dist
37 lines (34 loc) · 1014 Bytes
/
php_cs.dist
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
<?php
// Great tool for configuration: https://mlocati.github.io/php-cs-fixer-configurator/
$finder = PhpCsFixer\Finder::create()
->in('src')
->in('tests')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PSR2' => true,
'@DoctrineAnnotation' => true,
'@PHP71Migration' => true,
'@PHP73Migration' => true,
'@PHP74Migration' => true,
'@PHPUnit60Migration:risky' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
],
'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,
])
->setFinder($finder)
;