@@ -3015,34 +3015,51 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
30153015 - Thanks to [ Sergey] [ @sserbin ] for the patch
30163016
30173017### 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
30233023 - 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
30283028 - 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
30363053
30373054## [ 2.7.0] - 2016-09-02
30383055### Changed
30393056- 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
30413058 - File and directory paths are listed one per line
30423059 - Usage is: phpcs --file-list=/path/to/file-list ...
30433060 - Thanks to [ Blotzu] [ @andrei-propertyguru ] for the patch
30443061- 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 ] )
30463063 - Useful if a sniff needs to exclude files based on the environment, or is checking filenames
30473064 - Override the new getTestFiles() method to specify your own list of test files
30483065- 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
30673084 - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
30683085- Added Generic.PHP.DisallowAlternativePHPTags to ban the use of alternate PHP tags
30693086 - 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 ] )
30713088 - Makes this sniff more compatible with those that check parenthesis spacing of function calls
30723089- Squiz.WhiteSpace.ObjectOperatorSpacing now has a setting to ignore newline characters around object operators
30733090 - Default remains FALSE, so newlines are not allowed
@@ -3081,8 +3098,8 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
30813098 - Thanks to [ Walt Sorensen] [ @photodude ] for the patch
30823099- PHPCBF is now able to fix Generic.PHP.DisallowShortOpenTag
30833100 - 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 ] )
30863103- Generic UpperCaseConstantNameSniff now allows lowercase namespaces in constant definitions
30873104 - Thanks to [ Daniel Schniepp] [ @dschniepp ] for the patch
30883105- 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
30933110 - Thanks to [ Finlay Beaton] [ @ofbeaton ] for the patch
30943111
30953112### 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
30973114 - 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
31073124 - 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
31143131 - Thanks to [ Raphael Horber] [ @rhorber ] for the patch
31153132
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+
31163154## [ 2.6.2] - 2016-07-14
31173155### Changed
31183156- Added a new --exclude CLI argument to exclude a list of sniffs from checking and fixing (request #904 )
0 commit comments