original_string: protected function getSubmittedOrderCheckout()
      {
          $submitted = $this->getSubmitted();
          $submitted += $this->data_form['order'];
          $submitted['cart'] = $this->data_cart;
  
          $submitted['data']['user'] = array(
              'ip' => $this->server->remoteAddr(),
              'agent' => $this->server->userAgent()
          );
  
          if (empty($this->admin)) {
              return $submitted;
          }
  
          // Convert decimal prices from inputs in admin mode
          $submitted['total'] = $this->price->amount($submitted['total'], $submitted['currency']);
  
          if (empty($submitted['data']['components'])) {
              return $submitted;
          }
  
          $this->prepareSubmittedOrderComponentsCheckout($submitted);
          return $submitted;
      }
code: protected function getSubmittedOrderCheckout()
      {
          $submitted = $this->getSubmitted();
          $submitted += $this->data_form['order'];
          $submitted['cart'] = $this->data_cart;
  
          $submitted['data']['user'] = array(
              'ip' => $this->server->remoteAddr(),
              'agent' => $this->server->userAgent()
          );
  
          if (empty($this->admin)) {
              return $submitted;
          }
  
          // Convert decimal prices from inputs in admin mode
          $submitted['total'] = $this->price->amount($submitted['total'], $submitted['currency']);
  
          if (empty($submitted['data']['components'])) {
              return $submitted;
          }
  
          $this->prepareSubmittedOrderComponentsCheckout($submitted);
          return $submitted;
      }
code_tokens: protected function getSubmittedOrderCheckout ( ) { $ submitted = $ this -> getSubmitted ( ) ; $ submitted += $ this -> data_form [ 'order' ] ; $ submitted [ 'cart' ] = $ this -> data_cart ; $ submitted [ 'data' ] [ 'user' ] = array ( 'ip' => $ this -> server -> remoteAddr ( ) , 'agent' => $ this -> server -> userAgent ( ) ) ; if ( empty ( $ this -> admin ) ) { return $ submitted ; } // Convert decimal prices from inputs in admin mode $ submitted [ 'total' ] = $ this -> price -> amount ( $ submitted [ 'total' ] , $ submitted [ 'currency' ] ) ; if ( empty ( $ submitted [ 'data' ] [ 'components' ] ) ) { return $ submitted ; } $ this -> prepareSubmittedOrderComponentsCheckout ( $ submitted ) ; return $ submitted ; }
docstring: Returns an array of prepared submitted order data
  @return array
docstring_tokens: Returns an array of prepared submitted order data