-
Notifications
You must be signed in to change notification settings - Fork 11
/
.php-cs-fixer.php
32 lines (32 loc) · 1.12 KB
/
.php-cs-fixer.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
<?php
$finder = PhpCsFixer\Finder::create()
->in('src')
->in('tests')
;
$config = new PhpCsFixer\Config();
return $config->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
// override some Symfony rules
'blank_line_before_statement' => false,
'cast_spaces' => false,
'concat_space' => array('spacing' => 'one'),
'yoda_style' => false,
'no_singleline_whitespace_before_semicolons' => false,
'phpdoc_align' => false,
'phpdoc_separation' => false,
'php_unit_fqcn_annotation' => false,
'increment_style' => false,
// additional rules
'array_syntax' => array('syntax' => 'short'),
'general_phpdoc_annotation_remove' => array('annotations' => array('@author', '@inheritdoc')),
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_return' => true,
'phpdoc_add_missing_param_annotation' => true,
'strict_comparison' => true,
))
->setRiskyAllowed(true)
->setFinder($finder)
;