From 171dc787b6ec1d4504922684473d12a907c56b7b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 16 Mar 2020 06:42:23 +0100 Subject: [PATCH] BadFunctions/NoEvals: remove redundant function call `$tokens` is not used, so no need to declare it. --- Security/Sniffs/BadFunctions/NoEvalsSniff.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Security/Sniffs/BadFunctions/NoEvalsSniff.php b/Security/Sniffs/BadFunctions/NoEvalsSniff.php index f3902d3..c369686 100644 --- a/Security/Sniffs/BadFunctions/NoEvalsSniff.php +++ b/Security/Sniffs/BadFunctions/NoEvalsSniff.php @@ -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'); }