Skip to content

Commit

Permalink
Replace echo by log
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Garbe committed Sep 9, 2012
1 parent b6376d5 commit c0f1b86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Beautifier/Filter.php
Expand Up @@ -228,11 +228,12 @@ public function handleToken($token)
}
$sValue = $token[1];
if ($sMethod) {
if ($this->oBeaut->iVerbose > 5) {
echo $sMethod . ":" . trim($sValue) . PHP_EOL;
}
PHP_Beautifier_Common::getLog()->log($this->getName()."->".$sMethod."(".trim($sValue).")", PEAR_LOG_DEBUG);
// return false if PHP_Beautifier_Filter::BYPASS
return ($this->$sMethod($sValue) !== PHP_Beautifier_Filter::BYPASS);
$result = ($this->$sMethod($sValue) !== PHP_Beautifier_Filter::BYPASS);
if ($result)
PHP_Beautifier_Common::getLog()->log($this->getName()."->".$sMethod." done", PEAR_LOG_DEBUG);
return $result;
} else { // WEIRD!!! -> Add the same received
$this->oBeaut->add($token[1]);
PHP_Beautifier_Common::getLog()->log("Add same received:" . trim($token[1]), PEAR_LOG_DEBUG);
Expand Down

0 comments on commit c0f1b86

Please sign in to comment.