-
Notifications
You must be signed in to change notification settings - Fork 5
/
.php_cs
26 lines (24 loc) · 1.24 KB
/
.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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('cache', 'vendor')
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers([
'concat_with_spaces', // Concatenation should be used with at least one whitespace around.
'ereg_to_preg', // Replace deprecated ereg regular expression functions with preg.
'header_comment', // header_comment
'no_useless_return', // There should not be an empty return statement at the end of a function.
'newline_after_open_tag', // Ensure there is no code on the same line as the PHP open tag.
'ordered_use', // Ordering use statements.
'php4_constructor', // Convert PHP4-style constructors to __construct. Warning! This could change code behavior.
'phpdoc_order', // Annotations in phpdocs should be ordered so that param annotations come first, then throws annotations, then return annotations.
'phpdoc_var_to_type', // @var should always be written as @type.
'short_array_syntax', // PHP arrays should use the PHP 5.4 short-syntax.
'strict', // Comparison should be strict.
'strict_param',
])
->finder($finder)
;