original_string: public function addLink($title, $href, $active = false)
      {
          $this->data['tabs'][] = [
              'id'      => mt_rand(),
              'title'   => $title,
              'href'    => $href,
              'type'    => static::TYPE_LINK,
          ];
  
          if ($active) {
              $this->data['active'] = count($this->data['tabs']) - 1;
          }
  
          return $this;
      }
code: public function addLink($title, $href, $active = false)
      {
          $this->data['tabs'][] = [
              'id'      => mt_rand(),
              'title'   => $title,
              'href'    => $href,
              'type'    => static::TYPE_LINK,
          ];
  
          if ($active) {
              $this->data['active'] = count($this->data['tabs']) - 1;
          }
  
          return $this;
      }
code_tokens: public function addLink ( $ title , $ href , $ active = false ) { $ this -> data [ 'tabs' ] [ ] = [ 'id' => mt_rand ( ) , 'title' => $ title , 'href' => $ href , 'type' => static :: TYPE_LINK , ] ; if ( $ active ) { $ this -> data [ 'active' ] = count ( $ this -> data [ 'tabs' ] ) - 1 ; } return $ this ; }
docstring: Add a link on tab.
  
  @param string $title
  @param string $href
  @param bool   $active
  
  @return $this
docstring_tokens: Add a link on tab .