@@ -15,33 +15,33 @@ return Symfony\CS\Config\Config::create()
15
15
->setUsingCache (true )
16
16
->level (Symfony \CS \FixerInterface::SYMFONY_LEVEL )
17
17
->fixers ([
18
- '-long_array_syntax ' , /// Arrays should use the long syntax.
19
- '-php4_constructor ' , /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior.
20
- '-phpdoc_var_to_type ' , /// @var should always be written as @type.
21
- '-align_double_arrow ' , /// Align double arrow symbols in consecutive lines.
22
- '-unalign_double_arrow ' , /// Unalign double arrow symbols in consecutive lines.
23
- '-align_equals ' , /// Align equals symbols in consecutive lines.
24
- '-unalign_equals ' , /// Unalign equals symbols in consecutive lines.
25
- '-blankline_after_open_tag ' , /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline.
26
- '-phpdoc_no_empty_return ' , /// @return void and @return null annotations should be omitted from phpdocs.
27
- '-empty_return ' , /// A return statement wishing to return nothing should be simply "return".
28
- '-return ' , /// An empty line feed should precede a return statement.
29
- '-phpdoc_params ' , /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically.
30
- '-phpdoc_scalar ' , /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean".
31
- '-phpdoc_separation ' , /// Annotations of a different type are separated by a single blank line.
18
+ '-long_array_syntax ' , /// Arrays should use the long syntax
19
+ '-php4_constructor ' , /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior
20
+ '-phpdoc_var_to_type ' , /// @var should always be written as @type
21
+ '-align_double_arrow ' , /// Align double arrow symbols in consecutive lines
22
+ '-unalign_double_arrow ' , /// Unalign double arrow symbols in consecutive lines
23
+ '-align_equals ' , /// Align equals symbols in consecutive lines
24
+ '-unalign_equals ' , /// Unalign equals symbols in consecutive lines
25
+ '-blankline_after_open_tag ' , /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline
26
+ '-phpdoc_no_empty_return ' , /// @return void and @return null annotations should be omitted from phpdocs
27
+ '-empty_return ' , /// A return statement wishing to return nothing should be simply "return"
28
+ '-return ' , /// An empty line feed should precede a return statement
29
+ '-phpdoc_params ' , /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically
30
+ '-phpdoc_scalar ' , /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean"
31
+ '-phpdoc_separation ' , /// Annotations of a different type are separated by a single blank line
32
32
'-phpdoc_to_comment ' , /// Docblocks should only be used on structural elements
33
- 'header_comment ' , /// Add, replace or remove header comment.
34
- 'concat_with_spaces ' , /// Concatenation should be used with at least one whitespace around.
35
- 'ereg_to_preg ' , /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior.
36
- 'multiline_spaces_before_semicolon ' , /// Multi-line whitespace before closing semicolon are prohibited.
37
- 'newline_after_open_tag ' , /// Ensure there is no code on the same line as the PHP open tag.
38
- 'single_blank_line_before_namespace ' , /// There should be no blank lines before a namespace declaration.
39
- 'ordered_use ' , /// Ordering use statements.
40
- 'phpdoc_order ' , /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return.
41
- 'pre_increment ' , /// Pre incrementation/decrementation should be used if possible.
42
- 'short_array_syntax ' , /// PHP arrays should use the PHP 5.4 short-syntax.
43
- 'strict ' , /// Comparison should be strict. Warning! This could change code behavior.
44
- 'strict_param ' , /// Functions should be used with $strict param. Warning! This could change code behavior.
33
+ 'header_comment ' , /// Add, replace or remove header comment
34
+ 'concat_with_spaces ' , /// Concatenation should be used with at least one whitespace around
35
+ 'ereg_to_preg ' , /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior
36
+ 'multiline_spaces_before_semicolon ' , /// Multi-line whitespace before closing semicolon are prohibited
37
+ 'newline_after_open_tag ' , /// Ensure there is no code on the same line as the PHP open tag
38
+ 'single_blank_line_before_namespace ' , /// There should be no blank lines before a namespace declaration
39
+ 'ordered_use ' , /// Ordering use statements
40
+ 'phpdoc_order ' , /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return
41
+ 'pre_increment ' , /// Pre incrementation/decrementation should be used if possible
42
+ 'short_array_syntax ' , /// PHP arrays should use the PHP 5.4 short-syntax
43
+ 'strict ' , /// Comparison should be strict. Warning! This could change code behavior
44
+ 'strict_param ' , /// Functions should be used with $strict param. Warning! This could change code behavior
45
45
])
46
46
->finder (
47
47
Symfony \CS \Finder \DefaultFinder::create ()
0 commit comments