-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
30 lines (27 loc) · 911 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
<?php
if (!file_exists(__DIR__.'/src')) {
exit(0);
}
$finder = PhpCsFixer\Finder::create()
->in([__DIR__ . '/src', __DIR__ . '/tests'])
;
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit48Migration:risky' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_order' => true,
'phpdoc_inline_tag' => true,
'binary_operator_spaces' => ['default' => null],
'php_unit_no_expectation_annotation' => false,
'array_syntax' => array('syntax' => 'short'),
'fopen_flags' => false,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_imports' => true,
'protected_to_private' => false,
'return_type_declaration' => ['space_before' => 'none'],
))
->setRiskyAllowed(true)
->setFinder($finder)
;