Skip to content

Commit 171dc78

Browse files
committed
BadFunctions/NoEvals: remove redundant function call
`$tokens` is not used, so no need to declare it.
1 parent f63de15 commit 171dc78

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Security/Sniffs/BadFunctions/NoEvalsSniff.php

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public function register() {
2626
* @return void
2727
*/
2828
public function process(File $phpcsFile, $stackPtr) {
29-
$tokens = $phpcsFile->getTokens();
3029
$error = 'Please do not use eval()';
3130
$phpcsFile->addError($error, $stackPtr, 'NoEvals');
3231
}

0 commit comments

Comments
 (0)