original_string: public function defaultCallback($handler)
      {
          $exception = $handler->getLastError();
          if (php_sapi_name() != "cli") {
              $message   = htmlspecialchars($exception->getMessage());
              $trace     = nl2br(htmlspecialchars($exception->getTraceAsString()));
              echo "<!DOCTYPE html><html><head><title>Error</title></head><body>",
                  "<h1>{$message}</h1><p>{$trace}</p></body><html>";
          } else {
              echo $exception->getMessage() . PHP_EOL,
                  "-----------" . PHP_EOL,
                  $exception->getTraceAsString() . PHP_EOL;
          }
      }
code: public function defaultCallback($handler)
      {
          $exception = $handler->getLastError();
          if (php_sapi_name() != "cli") {
              $message   = htmlspecialchars($exception->getMessage());
              $trace     = nl2br(htmlspecialchars($exception->getTraceAsString()));
              echo "<!DOCTYPE html><html><head><title>Error</title></head><body>",
                  "<h1>{$message}</h1><p>{$trace}</p></body><html>";
          } else {
              echo $exception->getMessage() . PHP_EOL,
                  "-----------" . PHP_EOL,
                  $exception->getTraceAsString() . PHP_EOL;
          }
      }
code_tokens: public function defaultCallback ( $ handler ) { $ exception = $ handler -> getLastError ( ) ; if ( php_sapi_name ( ) != "cli" ) { $ message = htmlspecialchars ( $ exception -> getMessage ( ) ) ; $ trace = nl2br ( htmlspecialchars ( $ exception -> getTraceAsString ( ) ) ) ; echo "<!DOCTYPE html><html><head><title>Error</title></head><body>" , "<h1>{$message}</h1><p>{$trace}</p></body><html>" ; } else { echo $ exception -> getMessage ( ) . PHP_EOL , "-----------" . PHP_EOL , $ exception -> getTraceAsString ( ) . PHP_EOL ; } }
docstring: The default error callback
  
  This is the default error callback. It displays a web page with error information.
  This should not be used in production. Ever.
  
  @param  ErrorHandler $handler The object that handled the error
  @return mixed
docstring_tokens: The default error callback