original_string: public function setWidth(TcTable $table) {
          if (!$this->width) {
              $widths = [];
              foreach ($table->getColumns() as $key => $column) {
                  $widths[$key] = $column['width'];
              }
              unset($widths[$this->columnIndex]);
              $this->width = $this->getRemainingColumnWidth($table, $widths);
          }
          $width = $this->width;
          $table->setColumnDefinition($this->columnIndex, 'width', $width);
      }
code: public function setWidth(TcTable $table) {
          if (!$this->width) {
              $widths = [];
              foreach ($table->getColumns() as $key => $column) {
                  $widths[$key] = $column['width'];
              }
              unset($widths[$this->columnIndex]);
              $this->width = $this->getRemainingColumnWidth($table, $widths);
          }
          $width = $this->width;
          $table->setColumnDefinition($this->columnIndex, 'width', $width);
      }
code_tokens: public function setWidth ( TcTable $ table ) { if ( ! $ this -> width ) { $ widths = [ ] ; foreach ( $ table -> getColumns ( ) as $ key => $ column ) { $ widths [ $ key ] = $ column [ 'width' ] ; } unset ( $ widths [ $ this -> columnIndex ] ) ; $ this -> width = $ this -> getRemainingColumnWidth ( $ table , $ widths ) ; } $ width = $ this -> width ; $ table -> setColumnDefinition ( $ this -> columnIndex , 'width' , $ width ) ; }
docstring: Check the max width of the stretched column. This method is called just
  before we start to add data rows
  
  @param TcTable $table
  @return void
docstring_tokens: Check the max width of the stretched column . This method is called just before we start to add data rows