Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EscapeOutput: remove unused variable $end
Browse files Browse the repository at this point in the history
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.
rodrigoprimo committed Dec 9, 2024
1 parent 270a8cf commit 55c1342
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion WordPress/Sniffs/Security/EscapeOutputSniff.php
Original file line number Diff line number Diff line change
@@ -185,7 +185,6 @@ public function getGroups() {
*/
public function process_token( $stackPtr ) {
$start = ( $stackPtr + 1 );
$end = $start;

switch ( $this->tokens[ $stackPtr ]['code'] ) {
case \T_STRING:

0 comments on commit 55c1342

Please sign in to comment.