original_string: public function run()
      {
          if (empty($this->links)) {
              return '';
          }
  
          $html[] = Html::beginTag('nav', $this->containerOptions);
          $html[] = Html::beginTag($this->tag, $this->options);
  
          if ($this->innerContainerOptions !== false) {
              $innerContainerTag = ArrayHelper::remove($this->innerContainerOptions, 'tag', 'div');
              $html[] = Html::beginTag($innerContainerTag, $this->innerContainerOptions);
          }
          $html[] = implode('', $this->prepareLinks());
  
          if ($this->innerContainerOptions !== false) {
              $html[] = Html::endTag($innerContainerTag);
          }
  
          $html[] = Html::endTag($this->tag);
          $html[] = Html::endTag('nav');
  
          return implode("\n", $html);
      }
code: public function run()
      {
          if (empty($this->links)) {
              return '';
          }
  
          $html[] = Html::beginTag('nav', $this->containerOptions);
          $html[] = Html::beginTag($this->tag, $this->options);
  
          if ($this->innerContainerOptions !== false) {
              $innerContainerTag = ArrayHelper::remove($this->innerContainerOptions, 'tag', 'div');
              $html[] = Html::beginTag($innerContainerTag, $this->innerContainerOptions);
          }
          $html[] = implode('', $this->prepareLinks());
  
          if ($this->innerContainerOptions !== false) {
              $html[] = Html::endTag($innerContainerTag);
          }
  
          $html[] = Html::endTag($this->tag);
          $html[] = Html::endTag('nav');
  
          return implode("\n", $html);
      }
code_tokens: public function run ( ) { if ( empty ( $ this -> links ) ) { return '' ; } $ html [ ] = Html :: beginTag ( 'nav' , $ this -> containerOptions ) ; $ html [ ] = Html :: beginTag ( $ this -> tag , $ this -> options ) ; if ( $ this -> innerContainerOptions !== false ) { $ innerContainerTag = ArrayHelper :: remove ( $ this -> innerContainerOptions , 'tag' , 'div' ) ; $ html [ ] = Html :: beginTag ( $ innerContainerTag , $ this -> innerContainerOptions ) ; } $ html [ ] = implode ( '' , $ this -> prepareLinks ( ) ) ; if ( $ this -> innerContainerOptions !== false ) { $ html [ ] = Html :: endTag ( $ innerContainerTag ) ; } $ html [ ] = Html :: endTag ( $ this -> tag ) ; $ html [ ] = Html :: endTag ( 'nav' ) ; return implode ( "\n" , $ html ) ; }
docstring: Render the widget.
  @return string the result of widget execution to be outputted.
  @throws InvalidConfigException
docstring_tokens: Render the widget .