Ejemplo n.º 1
0
 /**
  * Wrapper for doFilter method that tries to hide problems if we're not
  * debugging the application.
  *
  * @param  string $code -- unfiltered code
  * @return string       -- filtered code
  */
 public function filter($code)
 {
     try {
         return $this->doFilter($code);
     } catch (Exception $e) {
         if ($this->configuration->isDebug()) {
             throw $e;
         } else {
             return $code;
         }
     }
 }