original_string: public function table($content, $options = array())
      {
          if ('text' == $this->getType()) {
              return $content;
          }
  
          if (false === $options) {
              return $this->config('templates.tableend');
          }
  
          $tag = 'table';
          if (is_null($content)) {
              $tag = 'tablestart';
          }
  
          $templater = $this->templater();
          return $templater->format('table', [
          'attrs' => $templater->formatAttributes($this->_mergeAttributes($options, $this->config('attributes.table'))),
          'content' => $content
          ]);
      }
code: public function table($content, $options = array())
      {
          if ('text' == $this->getType()) {
              return $content;
          }
  
          if (false === $options) {
              return $this->config('templates.tableend');
          }
  
          $tag = 'table';
          if (is_null($content)) {
              $tag = 'tablestart';
          }
  
          $templater = $this->templater();
          return $templater->format('table', [
          'attrs' => $templater->formatAttributes($this->_mergeAttributes($options, $this->config('attributes.table'))),
          'content' => $content
          ]);
      }
code_tokens: public function table ( $ content , $ options = array ( ) ) { if ( 'text' == $ this -> getType ( ) ) { return $ content ; } if ( false === $ options ) { return $ this -> config ( 'templates.tableend' ) ; } $ tag = 'table' ; if ( is_null ( $ content ) ) { $ tag = 'tablestart' ; } $ templater = $ this -> templater ( ) ; return $ templater -> format ( 'table' , [ 'attrs' => $ templater -> formatAttributes ( $ this -> _mergeAttributes ( $ options , $ this -> config ( 'attributes.table' ) ) ) , 'content' => $ content ] ) ; }
docstring: Creates table.
  
  @param string $content
  @param array $options
  @return string
docstring_tokens: Creates table .