Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed May 22, 2016
2 parents 76ae826 + 56b0418 commit 675e093
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions CodeSniffer/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,6 @@ private function _addError($error, $line, $column, $code, $data, $severity, $fix
// Work out which sniff generated the error.
if (substr($code, 0, 9) === 'Internal.') {
// Any internal message.
$sniff = $code;
$sniffCode = $code;
} else {
$parts = explode('_', str_replace('\\', '_', $this->_activeListener));
Expand Down Expand Up @@ -1141,7 +1140,6 @@ private function _addWarning($warning, $line, $column, $code, $data, $severity,
// Work out which sniff generated the warning.
if (substr($code, 0, 9) === 'Internal.') {
// Any internal message.
$sniff = $code;
$sniffCode = $code;
} else {
$parts = explode('_', str_replace('\\', '_', $this->_activeListener));
Expand Down Expand Up @@ -1321,7 +1319,7 @@ public function getWarningCount()


/**
* Returns the number of successes recorded.
* Returns the number of successes recorded. Currently not in use.
*
* @return int
*/
Expand Down Expand Up @@ -1829,10 +1827,6 @@ private static function _createScopeMap(&$tokens, $tokenizer, $eolChar)
{
if (PHP_CODESNIFFER_VERBOSITY > 1) {
echo "\t*** START SCOPE MAP ***".PHP_EOL;
$isWin = false;
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$isWin = true;
}
}

$numTokens = count($tokens);
Expand Down Expand Up @@ -1896,11 +1890,6 @@ private static function _recurseScopeMap(
if (PHP_CODESNIFFER_VERBOSITY > 1) {
echo str_repeat("\t", $depth);
echo "=> Begin scope map recursion at token $stackPtr with depth $depth".PHP_EOL;

$isWin = false;
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$isWin = true;
}
}

$opener = null;
Expand Down

0 comments on commit 675e093

Please sign in to comment.