Skip to content

Commit

Permalink
BadFunctions/NoEvals: remove redundant function call
Browse files Browse the repository at this point in the history
`$tokens` is not used, so no need to declare it.
  • Loading branch information
jrfnl committed Mar 16, 2020
1 parent 98137b6 commit ea2d7bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Security/Sniffs/BadFunctions/NoEvalsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function register() {
* @return void
*/
public function process(File $phpcsFile, $stackPtr) {
$tokens = $phpcsFile->getTokens();
$error = 'Please do not use eval()';
$phpcsFile->addError($error, $stackPtr, 'NoEvals');
}
Expand Down

0 comments on commit ea2d7bc

Please sign in to comment.