original_string: protected function validateOrderCheckout()
      {
          if ($this->same_payment_address) {
              $this->unsetSubmitted('address.payment');
          }
  
          $this->setSubmitted('update', array());
          $this->setSubmitted('store_id', $this->store_id);
          $this->setSubmitted('user_id', $this->order_user_id);
          $this->setSubmitted('creator', $this->admin_user_id);
  
          if ($this->admin) {
              $this->setSubmitted('status', $this->order->getStatusInitial());
          }
  
          return $this->validateComponent('order');
      }
code: protected function validateOrderCheckout()
      {
          if ($this->same_payment_address) {
              $this->unsetSubmitted('address.payment');
          }
  
          $this->setSubmitted('update', array());
          $this->setSubmitted('store_id', $this->store_id);
          $this->setSubmitted('user_id', $this->order_user_id);
          $this->setSubmitted('creator', $this->admin_user_id);
  
          if ($this->admin) {
              $this->setSubmitted('status', $this->order->getStatusInitial());
          }
  
          return $this->validateComponent('order');
      }
code_tokens: protected function validateOrderCheckout ( ) { if ( $ this -> same_payment_address ) { $ this -> unsetSubmitted ( 'address.payment' ) ; } $ this -> setSubmitted ( 'update' , array ( ) ) ; $ this -> setSubmitted ( 'store_id' , $ this -> store_id ) ; $ this -> setSubmitted ( 'user_id' , $ this -> order_user_id ) ; $ this -> setSubmitted ( 'creator' , $ this -> admin_user_id ) ; if ( $ this -> admin ) { $ this -> setSubmitted ( 'status' , $ this -> order -> getStatusInitial ( ) ) ; } return $ this -> validateComponent ( 'order' ) ; }
docstring: Validates an array of submitted data before creating an order
  @return array
docstring_tokens: Validates an array of submitted data before creating an order