@@ -2329,8 +2329,8 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2329
2329
- Fixed bug [ #1777 ] : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
2330
2330
2331
2331
[ #604 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/604
2332
- [ #1488 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1488
2333
2332
[ #1462 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1462
2333
+ [ #1488 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1488
2334
2334
[ #1573 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1573
2335
2335
[ #1590 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1590
2336
2336
[ #1718 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1718
@@ -2374,7 +2374,6 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2374
2374
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2375
2375
- Fixed bug [ #1702 ] : Generic.WhiteSpaceDisallowSpaceIndent fixer bug when line only contains superfluous whitespace
2376
2376
2377
- [ #1697 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1697
2378
2377
[ #1512 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1512
2379
2378
[ #1522 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1522
2380
2379
[ #1570 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1570
@@ -2385,6 +2384,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2385
2384
[ #1669 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1669
2386
2385
[ #1681 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1681
2387
2386
[ #1694 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1694
2387
+ [ #1697 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1697
2388
2388
[ #1702 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1702
2389
2389
2390
2390
## [ 3.1.0] - 2017-09-20
@@ -2462,8 +2462,8 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2462
2462
- Fixed bug [ #1640 ] : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
2463
2463
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2464
2464
2465
- [ #1566 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1566
2466
2465
[ #1550 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1550
2466
+ [ #1566 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1566
2467
2467
[ #1577 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1577
2468
2468
[ #1581 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1581
2469
2469
[ #1591 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1591
@@ -2571,13 +2571,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2571
2571
- Fixed bug [ #1501 ] : Interactive mode is broken
2572
2572
- Fixed bug [ #1504 ] : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
2573
2573
2574
- [ #1484 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1484
2575
2574
[ #1442 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1442
2576
2575
[ #1447 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1447
2577
2576
[ #1449 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1449
2578
2577
[ #1450 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1450
2579
2578
[ #1451 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1451
2580
2579
[ #1454 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1454
2580
+ [ #1484 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1484
2581
2581
[ #1495 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1495
2582
2582
[ #1496 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1496
2583
2583
[ #1501 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1501
@@ -2616,8 +2616,8 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2616
2616
- Thanks to [ Fabian Wiget] [ @fabacino ] for the patch
2617
2617
2618
2618
[ #811 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/811
2619
- [ #1129 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1129
2620
2619
[ #834 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/834
2620
+ [ #1129 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1129
2621
2621
2622
2622
## [ 3.0.0RC4] - 2017-03-02
2623
2623
### Security
@@ -3015,34 +3015,51 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3015
3015
- Thanks to [ Sergey] [ @sserbin ] for the patch
3016
3016
3017
3017
### Fixed
3018
- - Fixed bug #1135 : PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine not detected if preceded by multiline function call
3019
- - Fixed bug #1138 : PEAR.ControlStructures.MultiLineCondition.Alignment not detected if closing brace is first token on line
3020
- - Fixed bug #1141 : Sniffs that check EOF newlines don't detect newlines properly when the last token is a doc block
3021
- - Fixed bug #1150 : Squiz.Strings.EchoedStrings does not properly fix bracketed statements
3022
- - Fixed bug #1156 : Generic.Formatting.DisallowMultipleStatements errors when multiple short echo tags are used on the same line
3018
+ - Fixed bug [ #1135 ] : PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine not detected if preceded by multiline function call
3019
+ - Fixed bug [ #1138 ] : PEAR.ControlStructures.MultiLineCondition.Alignment not detected if closing brace is first token on line
3020
+ - Fixed bug [ #1141 ] : Sniffs that check EOF newlines don't detect newlines properly when the last token is a doc block
3021
+ - Fixed bug [ #1150 ] : Squiz.Strings.EchoedStrings does not properly fix bracketed statements
3022
+ - Fixed bug [ #1156 ] : Generic.Formatting.DisallowMultipleStatements errors when multiple short echo tags are used on the same line
3023
3023
- Thanks to [ Nikola Kovacs] [ @nkovacs ] for the patch
3024
- - Fixed bug #1161 : Absolute report path is treated like a relative path if it also exists within the current directory
3025
- - Fixed bug #1170 : Javascript regular expression literal not recognized after comparison operator
3026
- - Fixed bug #1180 : Class constant named FUNCTION is incorrectly tokenized
3027
- - Fixed bug #1181 : Squiz.Operators.IncrementDecrementUsage.NoBrackets false positive when incrementing properties
3024
+ - Fixed bug [ #1161 ] : Absolute report path is treated like a relative path if it also exists within the current directory
3025
+ - Fixed bug [ #1170 ] : Javascript regular expression literal not recognized after comparison operator
3026
+ - Fixed bug [ #1180 ] : Class constant named FUNCTION is incorrectly tokenized
3027
+ - Fixed bug [ #1181 ] : Squiz.Operators.IncrementDecrementUsage.NoBrackets false positive when incrementing properties
3028
3028
- Thanks to [ Jürgen Henge-Ernst] [ @hernst42 ] for the patch
3029
- - Fixed bug #1188 : Generic.WhiteSpace.ScopeIndent issues with inline HTML and multi-line function signatures
3030
- - Fixed bug #1190 : phpcbf on if/else with trailing comment generates erroneous code
3031
- - Fixed bug #1191 : Javascript sniffer fails with function called "Function"
3032
- - Fixed bug #1203 : Inconsistent behavior of PHP_CodeSniffer_File::findEndOfStatement
3033
- - Fixed bug #1218 : CASE conditions using class constants named NAMESPACE/INTERFACE/TRAIT etc are incorrectly tokenized
3034
- - Fixed bug #1221 : Indented function call with multiple closure arguments can cause scope indent error
3035
- - Fixed bug #1224 : PHPCBF fails to fix code with heredoc/nowdoc as first argument to a function
3029
+ - Fixed bug [ #1188 ] : Generic.WhiteSpace.ScopeIndent issues with inline HTML and multi-line function signatures
3030
+ - Fixed bug [ #1190 ] : phpcbf on if/else with trailing comment generates erroneous code
3031
+ - Fixed bug [ #1191 ] : Javascript sniffer fails with function called "Function"
3032
+ - Fixed bug [ #1203 ] : Inconsistent behavior of PHP_CodeSniffer_File::findEndOfStatement
3033
+ - Fixed bug [ #1218 ] : CASE conditions using class constants named NAMESPACE/INTERFACE/TRAIT etc are incorrectly tokenized
3034
+ - Fixed bug [ #1221 ] : Indented function call with multiple closure arguments can cause scope indent error
3035
+ - Fixed bug [ #1224 ] : PHPCBF fails to fix code with heredoc/nowdoc as first argument to a function
3036
+
3037
+ [ #1135 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1135
3038
+ [ #1138 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1138
3039
+ [ #1141 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1141
3040
+ [ #1150 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1150
3041
+ [ #1156 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1156
3042
+ [ #1161 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1161
3043
+ [ #1170 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1170
3044
+ [ #1180 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1180
3045
+ [ #1181 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1181
3046
+ [ #1188 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1188
3047
+ [ #1190 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1190
3048
+ [ #1191 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1191
3049
+ [ #1203 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1203
3050
+ [ #1218 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1218
3051
+ [ #1221 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1221
3052
+ [ #1224 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1224
3036
3053
3037
3054
## [ 2.7.0] - 2016-09-02
3038
3055
### Changed
3039
3056
- Added --file-list command line argument to allow a list of files and directories to be specified in an external file
3040
- - Useful is you have a generated list of files to check that would be too long for the command line
3057
+ - Useful if you have a generated list of files to check that would be too long for the command line
3041
3058
- File and directory paths are listed one per line
3042
3059
- Usage is: phpcs --file-list=/path/to/file-list ...
3043
3060
- Thanks to [ Blotzu] [ @andrei-propertyguru ] for the patch
3044
3061
- Values set using @codingStandardsChangeSetting comments can now contain spaces
3045
- - Sniff unit tests can now specify a list of test files instead of letting the runner pick them (request #1078 )
3062
+ - Sniff unit tests can now specify a list of test files instead of letting the runner pick them (request [ #1078 ] )
3046
3063
- Useful if a sniff needs to exclude files based on the environment, or is checking filenames
3047
3064
- Override the new getTestFiles() method to specify your own list of test files
3048
3065
- Generic.Functions.OpeningFunctionBraceKernighanRitchie now ignores spacing for function return types
@@ -3067,7 +3084,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3067
3084
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
3068
3085
- Added Generic.PHP.DisallowAlternativePHPTags to ban the use of alternate PHP tags
3069
3086
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
3070
- - Squiz.WhiteSpace.LanguageConstructSpacing no longer checks for spaces if parenthesis are being used (request #1062 )
3087
+ - Squiz.WhiteSpace.LanguageConstructSpacing no longer checks for spaces if parenthesis are being used (request [ #1062 ] )
3071
3088
- Makes this sniff more compatible with those that check parenthesis spacing of function calls
3072
3089
- Squiz.WhiteSpace.ObjectOperatorSpacing now has a setting to ignore newline characters around object operators
3073
3090
- Default remains FALSE, so newlines are not allowed
@@ -3081,8 +3098,8 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3081
3098
- Thanks to [ Walt Sorensen] [ @photodude ] for the patch
3082
3099
- PHPCBF is now able to fix Generic.PHP.DisallowShortOpenTag
3083
3100
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
3084
- - Improved the formatting of the end brace when auto fixing InlineControlStructure errors (request #1121 )
3085
- - Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine fix no longer leaves blank line after brace (request #1085 )
3101
+ - Improved the formatting of the end brace when auto fixing InlineControlStructure errors (request [ #1121 ] )
3102
+ - Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine fix no longer leaves blank line after brace (request [ #1085 ] )
3086
3103
- Generic UpperCaseConstantNameSniff now allows lowercase namespaces in constant definitions
3087
3104
- Thanks to [ Daniel Schniepp] [ @dschniepp ] for the patch
3088
3105
- Squiz DoubleQuoteUsageSniff is now more tolerant of syntax errors caused by mismatched string tokens
@@ -3093,26 +3110,47 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3093
3110
- Thanks to [ Finlay Beaton] [ @ofbeaton ] for the patch
3094
3111
3095
3112
### Fixed
3096
- - Fixed bug #985 : Duplicate class definition detection generates false-positives in media queries
3113
+ - Fixed bug [ #985 ] : Duplicate class definition detection generates false-positives in media queries
3097
3114
- Thanks to [ Raphael Horber] [ @rhorber ] for the patch
3098
- - Fixed bug #1014 : Squiz VariableCommentSniff doesn't always detect a missing comment
3099
- - Fixed bug #1066 : Undefined index: quiet in CLI.php during unit test run with -v command line arg
3100
- - Fixed bug #1072 : Squiz.SelfMemberReference.NotUsed not detected if leading namespace separator is used
3101
- - Fixed bug #1089 : Rulesets cannot be loaded if the path contains urlencoded characters
3102
- - Fixed bug #1091 : PEAR and Squiz FunctionComment sniffs throw errors for some invalid @param line formats
3103
- - Fixed bug #1092 : PEAR.Functions.ValidDefaultValue should not flag type hinted methods with a NULL default argument
3104
- - Fixed bug #1095 : Generic LineEndings sniff replaces tabs with spaces with --tab-width is set
3105
- - Fixed bug #1096 : Squiz FunctionDeclarationArgumentSpacing gives incorrect error/fix when variadic operator is followed by a space
3106
- - Fixed bug #1099 : Group use declarations are incorrectly fixed by the PSR2 standard
3115
+ - Fixed bug [ #1014 ] : Squiz VariableCommentSniff doesn't always detect a missing comment
3116
+ - Fixed bug [ #1066 ] : Undefined index: quiet in CLI.php during unit test run with -v command line arg
3117
+ - Fixed bug [ #1072 ] : Squiz.SelfMemberReference.NotUsed not detected if leading namespace separator is used
3118
+ - Fixed bug [ #1089 ] : Rulesets cannot be loaded if the path contains urlencoded characters
3119
+ - Fixed bug [ #1091 ] : PEAR and Squiz FunctionComment sniffs throw errors for some invalid @param line formats
3120
+ - Fixed bug [ #1092 ] : PEAR.Functions.ValidDefaultValue should not flag type hinted methods with a NULL default argument
3121
+ - Fixed bug [ #1095 ] : Generic LineEndings sniff replaces tabs with spaces with --tab-width is set
3122
+ - Fixed bug [ #1096 ] : Squiz FunctionDeclarationArgumentSpacing gives incorrect error/fix when variadic operator is followed by a space
3123
+ - Fixed bug [ #1099 ] : Group use declarations are incorrectly fixed by the PSR2 standard
3107
3124
- Thanks to [ Jason McCreary] [ @jasonmccreary ] for the patch
3108
- - Fixed bug #1101 : Incorrect indent errors when breaking out of PHP inside an IF statement
3109
- - Fixed bug #1102 : Squiz.Formatting.OperatorBracket.MissingBrackets faulty bracketing fix
3110
- - Fixed bug #1109 : Wrong scope indent reported in anonymous class
3111
- - Fixed bug #1112 : File docblock not recognized when require_once follows it
3112
- - Fixed bug #1120 : InlineControlStructureSniff does not handle auto-fixing for control structures that make function calls
3113
- - Fixed bug #1124 : Squiz.Operators.ComparisonOperatorUsage does not detect bracketed conditions for inline IF statements
3125
+ - Fixed bug [ #1101 ] : Incorrect indent errors when breaking out of PHP inside an IF statement
3126
+ - Fixed bug [ #1102 ] : Squiz.Formatting.OperatorBracket.MissingBrackets faulty bracketing fix
3127
+ - Fixed bug [ #1109 ] : Wrong scope indent reported in anonymous class
3128
+ - Fixed bug [ #1112 ] : File docblock not recognized when require_once follows it
3129
+ - Fixed bug [ #1120 ] : InlineControlStructureSniff does not handle auto-fixing for control structures that make function calls
3130
+ - Fixed bug [ #1124 ] : Squiz.Operators.ComparisonOperatorUsage does not detect bracketed conditions for inline IF statements
3114
3131
- Thanks to [ Raphael Horber] [ @rhorber ] for the patch
3115
3132
3133
+ [ #985 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/985
3134
+ [ #1014 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1014
3135
+ [ #1062 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1062
3136
+ [ #1066 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1066
3137
+ [ #1072 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1072
3138
+ [ #1078 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1078
3139
+ [ #1085 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1085
3140
+ [ #1089 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1089
3141
+ [ #1091 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1091
3142
+ [ #1092 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1092
3143
+ [ #1095 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1095
3144
+ [ #1096 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1096
3145
+ [ #1099 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1099
3146
+ [ #1101 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1101
3147
+ [ #1102 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1102
3148
+ [ #1109 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1109
3149
+ [ #1112 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1112
3150
+ [ #1120 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1120
3151
+ [ #1121 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1121
3152
+ [ #1124 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1124
3153
+
3116
3154
## [ 2.6.2] - 2016-07-14
3117
3155
### Changed
3118
3156
- Added a new --exclude CLI argument to exclude a list of sniffs from checking and fixing (request #904 )
0 commit comments