@@ -6,36 +6,49 @@ X-editable extension for Yii2
66@link https://github.com/hiqdev/yii2-x-editable
77@package yii2-x-editable
88@license BSD-3-Clause
9- @copyright Copyright (c) 2015, HiQDev (https ://hiqdev.com/)
9+ @copyright Copyright (c) 2015-2016 , HiQDev (http ://hiqdev.com/)
1010EOF ;
1111
1212Symfony \CS \Fixer \Contrib \HeaderCommentFixer::setHeader ($ header );
1313
1414return Symfony \CS \Config \Config::create ()
15+ ->setUsingCache (true )
1516 ->level (Symfony \CS \FixerInterface::SYMFONY_LEVEL )
1617 ->fixers ([
17- '-long_array_syntax ' , /// Arrays should use the long syntax.
18- '-php4_constructor ' , /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior.
19- '-phpdoc_var_to_type ' , /// @var should always be written as @type.
20- 'header_comment ' , /// Add, replace or remove header comment.
21- 'align_double_arrow ' , /// Align double arrow symbols in consecutive lines.
22- 'align_equals ' , /// Align equals symbols in consecutive lines.
23- 'concat_with_spaces ' , /// Concatenation should be used with at least one whitespace around.
24- 'ereg_to_preg ' , /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior.
25- 'multiline_spaces_before_semicolon ' , /// Multi-line whitespace before closing semicolon are prohibited.
26- 'newline_after_open_tag ' , /// Ensure there is no code on the same line as the PHP open tag.
27- 'single_blank_line_before_namespace ' , /// There should be no blank lines before a namespace declaration.
28- 'ordered_use ' , /// Ordering use statements.
29- 'phpdoc_order ' , /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return.
30- 'pre_increment ' , /// Pre incrementation/decrementation should be used if possible.
31- 'short_array_syntax ' , /// PHP arrays should use the PHP 5.4 short-syntax.
32- 'strict ' , /// Comparison should be strict. Warning! This could change code behavior.
33- 'strict_param ' , /// Functions should be used with $strict param. Warning! This could change code behavior.
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+ '-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
3445 ])
3546 ->finder (
3647 Symfony \CS \Finder \DefaultFinder::create ()
3748 ->in (__DIR__ )
49+ ->notPath ('vendor ' )
3850 ->notPath ('runtime ' )
51+ ->notPath ('web/assets ' )
3952 ->notPath ('tests/unit/UnitTester.php ' )
4053 )
4154;
0 commit comments