Skip to content

Commit 2573b67

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/UnusedFunctionParameter: remove unused variable
I found this while working on improving code coverage for this sniff. The value of this variable is defined again on line 112 and then only used right below it on line 113 (https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/84acf4e56f110db8e75cb9a575c5727df637643c/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php#L112-L113) so it should be safe to remove it.
1 parent 7ae6441 commit 2573b67

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public function process(File $phpcsFile, $stackPtr)
9494

9595
$errorCode = 'Found';
9696
$implements = false;
97-
$extends = false;
9897

9998
if ($token['code'] === T_FUNCTION) {
10099
$classPtr = $phpcsFile->getCondition($stackPtr, T_CLASS);

0 commit comments

Comments
 (0)