original_string: public function renameColumn($oldName, $newName)
      {
          foreach ($this->rows as $row) {
              $row->renameColumn($oldName, $newName);
  
              $subTable = $row->getSubtable();
              if ($subTable) {
                  $subTable->renameColumn($oldName, $newName);
              }
          }
          if (!is_null($this->summaryRow)) {
              $this->summaryRow->renameColumn($oldName, $newName);
          }
          if (!is_null($this->totalsRow)) {
              $this->totalsRow->renameColumn($oldName, $newName);
          }
      }
code: public function renameColumn($oldName, $newName)
      {
          foreach ($this->rows as $row) {
              $row->renameColumn($oldName, $newName);
  
              $subTable = $row->getSubtable();
              if ($subTable) {
                  $subTable->renameColumn($oldName, $newName);
              }
          }
          if (!is_null($this->summaryRow)) {
              $this->summaryRow->renameColumn($oldName, $newName);
          }
          if (!is_null($this->totalsRow)) {
              $this->totalsRow->renameColumn($oldName, $newName);
          }
      }
code_tokens: public function renameColumn ( $ oldName , $ newName ) { foreach ( $ this -> rows as $ row ) { $ row -> renameColumn ( $ oldName , $ newName ) ; $ subTable = $ row -> getSubtable ( ) ; if ( $ subTable ) { $ subTable -> renameColumn ( $ oldName , $ newName ) ; } } if ( ! is_null ( $ this -> summaryRow ) ) { $ this -> summaryRow -> renameColumn ( $ oldName , $ newName ) ; } if ( ! is_null ( $ this -> totalsRow ) ) { $ this -> totalsRow -> renameColumn ( $ oldName , $ newName ) ; } }
docstring: Rename a column in every row. This change is applied recursively to all subtables.
  
  @param string $oldName Old column name.
  @param string $newName New column name.
docstring_tokens: Rename a column in every row . This change is applied recursively to all subtables .