-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generic/UselessOverridingMethod: remove
$next === false
checks
Early on in the sniff code, it is checked if the method has a scope opener (which is never true if there is no scope closer). So there always will be at least one token after the scope opener, the scope closer. This means that `$next === false` checks are not necessary. `$next` will never be false. To be extra careful, a check to confirm that the scope closer is present was added to the beginning of the sniff.
- Loading branch information
1 parent
f4d815e
commit f38ea41
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters