original_string: public function doctype() {
          if ($this->page->theme->doctype === 'html5') {
              $this->contenttype = 'text/html; charset=utf-8';
              return "<!DOCTYPE html>\n";
  
          } else if ($this->page->theme->doctype === 'xhtml5') {
              $this->contenttype = 'application/xhtml+xml; charset=utf-8';
              return "<!DOCTYPE html>\n";
  
          } else {
              // legacy xhtml 1.0
              $this->contenttype = 'text/html; charset=utf-8';
              return ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n");
          }
      }
code: public function doctype() {
          if ($this->page->theme->doctype === 'html5') {
              $this->contenttype = 'text/html; charset=utf-8';
              return "<!DOCTYPE html>\n";
  
          } else if ($this->page->theme->doctype === 'xhtml5') {
              $this->contenttype = 'application/xhtml+xml; charset=utf-8';
              return "<!DOCTYPE html>\n";
  
          } else {
              // legacy xhtml 1.0
              $this->contenttype = 'text/html; charset=utf-8';
              return ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n");
          }
      }
code_tokens: public function doctype ( ) { if ( $ this -> page -> theme -> doctype === 'html5' ) { $ this -> contenttype = 'text/html; charset=utf-8' ; return "<!DOCTYPE html>\n" ; } else if ( $ this -> page -> theme -> doctype === 'xhtml5' ) { $ this -> contenttype = 'application/xhtml+xml; charset=utf-8' ; return "<!DOCTYPE html>\n" ; } else { // legacy xhtml 1.0 $ this -> contenttype = 'text/html; charset=utf-8' ; return ( '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n" ) ; } }
docstring: Get the DOCTYPE declaration that should be used with this page. Designed to
  be called in theme layout.php files.
  
  @return string the DOCTYPE declaration that should be used.
docstring_tokens: Get the DOCTYPE declaration that should be used with this page . Designed to be called in theme layout . php files .