original_string: public static function isHtmlView()
      {
          if (self::$_isHtmlView === NULL) {
              self::$_isHtmlView = false;
  
              $view = Registry::get('view');
              if ($view === NULL) {
                  $template = ViewAbstract::getTemplateConfig();
                  if (is_array($template)
                      and isset($template['type'])
                      and $template['type'] === ViewInterface::TYPE_HTML) {
                      self::$_isHtmlView = true;
                  }
              } else if ($view instanceof View and $view->getType() == ViewInterface::TYPE_HTML) {
                  self::$_isHtmlView = true;
              }
          }
  
          return self::$_isHtmlView;
      }
code: public static function isHtmlView()
      {
          if (self::$_isHtmlView === NULL) {
              self::$_isHtmlView = false;
  
              $view = Registry::get('view');
              if ($view === NULL) {
                  $template = ViewAbstract::getTemplateConfig();
                  if (is_array($template)
                      and isset($template['type'])
                      and $template['type'] === ViewInterface::TYPE_HTML) {
                      self::$_isHtmlView = true;
                  }
              } else if ($view instanceof View and $view->getType() == ViewInterface::TYPE_HTML) {
                  self::$_isHtmlView = true;
              }
          }
  
          return self::$_isHtmlView;
      }
code_tokens: public static function isHtmlView ( ) { if ( self :: $ _isHtmlView === NULL ) { self :: $ _isHtmlView = false ; $ view = Registry :: get ( 'view' ) ; if ( $ view === NULL ) { $ template = ViewAbstract :: getTemplateConfig ( ) ; if ( is_array ( $ template ) and isset ( $ template [ 'type' ] ) and $ template [ 'type' ] === ViewInterface :: TYPE_HTML ) { self :: $ _isHtmlView = true ; } } else if ( $ view instanceof View and $ view -> getType ( ) == ViewInterface :: TYPE_HTML ) { self :: $ _isHtmlView = true ; } } return self :: $ _isHtmlView ; }
docstring: Check if the view is of HTML type.
  
  @return bool
docstring_tokens: Check if the view is of HTML type .