-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_cs
30 lines (27 loc) · 858 Bytes
/
php_cs
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
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
//@Symfony modify
'concat_space' => [
'spacing' => 'one',
],
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'no_superfluous_phpdoc_tags' => false,
//@Symfony:risky enable
'combine_nested_dirname' => true,
'dir_constant' => true,
'ereg_to_preg' => true,
'fopen_flag_order' => true,
'function_to_constant' => true,
'implode_call' => true,
'is_null' => true,
'modernize_types_casting' => true,
'no_alias_functions' => true,
'no_useless_sprintf' => true,
'non_printable_character' => true,
'set_type_to_cast' => true,
])
->setCacheFile(__DIR__ . '/.php_cs.cache');