original_string: public function addAssets()
      {
          if ($this->enabled()) {
  
              // Only add assets if Page is HTML
              $page = $this->grav['page'];
              if ($page->templateFormat() !== 'html') {
                  return $this;
              }
  
              /** @var Assets $assets */
              $assets = $this->grav['assets'];
  
              // Add jquery library
              $assets->add('jquery', 101);
  
              $this->renderer = $this->debugbar->getJavascriptRenderer();
              $this->renderer->setIncludeVendors(false);
  
              // Get the required CSS files
              list($css_files, $js_files) = $this->renderer->getAssets(null, JavascriptRenderer::RELATIVE_URL);
              foreach ((array)$css_files as $css) {
                  $assets->addCss($css);
              }
  
              $assets->addCss('/system/assets/debugger.css');
  
              foreach ((array)$js_files as $js) {
                  $assets->addJs($js);
              }
          }
  
          return $this;
      }
code: public function addAssets()
      {
          if ($this->enabled()) {
  
              // Only add assets if Page is HTML
              $page = $this->grav['page'];
              if ($page->templateFormat() !== 'html') {
                  return $this;
              }
  
              /** @var Assets $assets */
              $assets = $this->grav['assets'];
  
              // Add jquery library
              $assets->add('jquery', 101);
  
              $this->renderer = $this->debugbar->getJavascriptRenderer();
              $this->renderer->setIncludeVendors(false);
  
              // Get the required CSS files
              list($css_files, $js_files) = $this->renderer->getAssets(null, JavascriptRenderer::RELATIVE_URL);
              foreach ((array)$css_files as $css) {
                  $assets->addCss($css);
              }
  
              $assets->addCss('/system/assets/debugger.css');
  
              foreach ((array)$js_files as $js) {
                  $assets->addJs($js);
              }
          }
  
          return $this;
      }
code_tokens: public function addAssets ( ) { if ( $ this -> enabled ( ) ) { // Only add assets if Page is HTML $ page = $ this -> grav [ 'page' ] ; if ( $ page -> templateFormat ( ) !== 'html' ) { return $ this ; } /** @var Assets $assets */ $ assets = $ this -> grav [ 'assets' ] ; // Add jquery library $ assets -> add ( 'jquery' , 101 ) ; $ this -> renderer = $ this -> debugbar -> getJavascriptRenderer ( ) ; $ this -> renderer -> setIncludeVendors ( false ) ; // Get the required CSS files list ( $ css_files , $ js_files ) = $ this -> renderer -> getAssets ( null , JavascriptRenderer :: RELATIVE_URL ) ; foreach ( ( array ) $ css_files as $ css ) { $ assets -> addCss ( $ css ) ; } $ assets -> addCss ( '/system/assets/debugger.css' ) ; foreach ( ( array ) $ js_files as $ js ) { $ assets -> addJs ( $ js ) ; } } return $ this ; }
docstring: Add the debugger assets to the Grav Assets
  
  @return $this
docstring_tokens: Add the debugger assets to the Grav Assets