original_string: protected function setFormDataCalculatedCheckout()
      {
          $result = $this->order->calculate($this->data_form);
  
          $this->data_form['total'] = $result['total'];
          $this->data_form['total_decimal'] = $result['total_decimal'];
          $this->data_form['total_formatted'] = $result['total_formatted'];
          $this->data_form['price_components'] = $this->prepareOrderComponentsCheckout($result);
      }
code: protected function setFormDataCalculatedCheckout()
      {
          $result = $this->order->calculate($this->data_form);
  
          $this->data_form['total'] = $result['total'];
          $this->data_form['total_decimal'] = $result['total_decimal'];
          $this->data_form['total_formatted'] = $result['total_formatted'];
          $this->data_form['price_components'] = $this->prepareOrderComponentsCheckout($result);
      }
code_tokens: protected function setFormDataCalculatedCheckout ( ) { $ result = $ this -> order -> calculate ( $ this -> data_form ) ; $ this -> data_form [ 'total' ] = $ result [ 'total' ] ; $ this -> data_form [ 'total_decimal' ] = $ result [ 'total_decimal' ] ; $ this -> data_form [ 'total_formatted' ] = $ result [ 'total_formatted' ] ; $ this -> data_form [ 'price_components' ] = $ this -> prepareOrderComponentsCheckout ( $ result ) ; }
docstring: Calculates order total and price components
docstring_tokens: Calculates order total and price components