Skip to content

Commit

Permalink
Removed unused line (ref #1550, #1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Aug 22, 2017
1 parent 9016f4f commit 661ce61
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
// If return type is not void, there needs to be a return statement
// somewhere in the function that returns something.
if (isset($tokens[$stackPtr]['scope_closer']) === true) {
$endToken = $tokens[$stackPtr]['scope_closer'];
$returnToken = $phpcsFile->findNext(array(T_RETURN, T_YIELD, T_YIELD_FROM), $stackPtr, $endToken);

$endToken = $tokens[$stackPtr]['scope_closer'];
for ($returnToken = $stackPtr; $returnToken < $endToken; $returnToken++) {
if ($tokens[$returnToken]['code'] === T_CLOSURE
|| $tokens[$returnToken]['code'] === T_ANON_CLASS
Expand Down

0 comments on commit 661ce61

Please sign in to comment.