original_string: public function updateTotals()
      {
          if (is_array($this->totals)) {
              foreach ($this->totals as $key => $val) {
                  if (is_object($this->current_row[$key])) {
                      continue;
                  }
                  $this->totals[$key] = $val + $this->current_row[$key];
              }
          }
      }
code: public function updateTotals()
      {
          if (is_array($this->totals)) {
              foreach ($this->totals as $key => $val) {
                  if (is_object($this->current_row[$key])) {
                      continue;
                  }
                  $this->totals[$key] = $val + $this->current_row[$key];
              }
          }
      }
code_tokens: public function updateTotals ( ) { if ( is_array ( $ this -> totals ) ) { foreach ( $ this -> totals as $ key => $ val ) { if ( is_object ( $ this -> current_row [ $ key ] ) ) { continue ; } $ this -> totals [ $ key ] = $ val + $ this -> current_row [ $ key ] ; } } }
docstring: Add current rendered row values to totals.
  
  Called before each formatRow() call.
docstring_tokens: Add current rendered row values to totals .