Skip to content

Commit

Permalink
Move the return to the correct location to save processing time (requ…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jul 5, 2016
1 parent 5af4388 commit ea32814
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)

$phpcsFile->fixer->endChangeset();
}

// We can return here because there is nothing else to check. All code
// below can assume that the array is not empty.
return;
}

// We can return here because there is nothing else to check. All code
// below can assume that the array is not empty.
return;
}

if ($tokens[$arrayStart]['line'] === $tokens[$arrayEnd]['line']) {
Expand Down

0 comments on commit ea32814

Please sign in to comment.