original_string: protected function renderTools()
      {
          $tools = '';
          if($this->collapseButton !== false){
              $tools .= '<a class="collapse-link"><i class="fa fa-chevron-up"></i></a>';
          }
          if ($this->closeButton !== false) {
              $tools .= '<a class="close-link"><i class="fa fa-times"></i></a>';
          }
          if (!empty($tools)) {
              return Html::tag('div', $tools, ['class' => 'ibox-tools']);
          } else {
              return null;
          }
      }
code: protected function renderTools()
      {
          $tools = '';
          if($this->collapseButton !== false){
              $tools .= '<a class="collapse-link"><i class="fa fa-chevron-up"></i></a>';
          }
          if ($this->closeButton !== false) {
              $tools .= '<a class="close-link"><i class="fa fa-times"></i></a>';
          }
          if (!empty($tools)) {
              return Html::tag('div', $tools, ['class' => 'ibox-tools']);
          } else {
              return null;
          }
      }
code_tokens: protected function renderTools ( ) { $ tools = '' ; if ( $ this -> collapseButton !== false ) { $ tools .= '<a class="collapse-link"><i class="fa fa-chevron-up"></i></a>' ; } if ( $ this -> closeButton !== false ) { $ tools .= '<a class="close-link"><i class="fa fa-times"></i></a>' ; } if ( ! empty ( $ tools ) ) { return Html :: tag ( 'div' , $ tools , [ 'class' => 'ibox-tools' ] ) ; } else { return null ; } }
docstring: Renders the tools
  @return string the rendering result
docstring_tokens: Renders the tools