Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Universal/SeparateFunctionsFromOO: simplify skipping the rest of the …
…file This commit updates the sniff to use `return $phpcsFile->numTokens` instead of `return ($phpcsFile->numTokens + 1)`. If a sniff file contains 50 tokens, the last `$stackPtr` will be 49, so returning `50` will already get us passed the end of the token stack and the `+ 1` is redundant. Includes minor fix to the return type as the method never returns `void`.
- Loading branch information