-
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused variables from a few sniffs (#2514)
* Remove unused variable passed as the third parameter to `preg_match()` This commit removes three instances where a variable was passed to `preg_match()` as the third parameter to fill it with the results of the search, but later it was not used. * EscapeOutput: remove unused variable `$end` This commit removes the unnecessary initialization of the variable `$end` at the beginning of the sniff code. Every single `case` statement of the `switch` that follows either re-initialize the variable with a different value or returns without using the variable.
- Loading branch information
1 parent
9f9726a
commit c028f32
Showing
3 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters