Skip to content

Commit

Permalink
Added the additional condition to make possible skipping the validati…
Browse files Browse the repository at this point in the history
…on if in a sniff would be cleaned up the listeners and tokens lists.
  • Loading branch information
Ruslan Baidan committed Jul 12, 2016
1 parent 19ee670 commit 4befbc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CodeSniffer/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public function start($contents=null)
if (isset($this->_ignoredListeners[$listenerData['class']]) === true
|| (isset($listenerIgnoreTo[$listenerData['class']]) === true
&& $listenerIgnoreTo[$listenerData['class']] > $stackPtr)
|| empty($this->_listeners) === true
) {
// This sniff is ignoring past this token, or the whole file.
continue;
Expand Down

0 comments on commit 4befbc4

Please sign in to comment.