original_string: protected function renderTable($table, &$allColumns = array())
      {
          if (is_array($table)) {
              // convert array to DataTable
              $table = DataTable::makeFromSimpleArray($table);
          }
  
          if ($table instanceof DataTable\Map) {
              $str = $this->renderDataTableMap($table, $allColumns);
          } else {
              $str = $this->renderDataTable($table, $allColumns);
          }
          return $str;
      }
code: protected function renderTable($table, &$allColumns = array())
      {
          if (is_array($table)) {
              // convert array to DataTable
              $table = DataTable::makeFromSimpleArray($table);
          }
  
          if ($table instanceof DataTable\Map) {
              $str = $this->renderDataTableMap($table, $allColumns);
          } else {
              $str = $this->renderDataTable($table, $allColumns);
          }
          return $str;
      }
code_tokens: protected function renderTable ( $ table , & $ allColumns = array ( ) ) { if ( is_array ( $ table ) ) { // convert array to DataTable $ table = DataTable :: makeFromSimpleArray ( $ table ) ; } if ( $ table instanceof DataTable \ Map ) { $ str = $ this -> renderDataTableMap ( $ table , $ allColumns ) ; } else { $ str = $ this -> renderDataTable ( $ table , $ allColumns ) ; } return $ str ; }
docstring: Computes the output of the given data table
  
  @param DataTable|array $table
  @param array $allColumns
  @return string
docstring_tokens: Computes the output of the given data table