original_string: public function validateAddToCart()
      {
          $this->setSubmitted('user_id', $this->getCartUid());
          $this->setSubmitted('store_id', $this->getStoreId());
          $this->setSubmitted('quantity', $this->getSubmitted('quantity', 1));
  
          $this->validateComponent('cart');
      }
code: public function validateAddToCart()
      {
          $this->setSubmitted('user_id', $this->getCartUid());
          $this->setSubmitted('store_id', $this->getStoreId());
          $this->setSubmitted('quantity', $this->getSubmitted('quantity', 1));
  
          $this->validateComponent('cart');
      }
code_tokens: public function validateAddToCart ( ) { $ this -> setSubmitted ( 'user_id' , $ this -> getCartUid ( ) ) ; $ this -> setSubmitted ( 'store_id' , $ this -> getStoreId ( ) ) ; $ this -> setSubmitted ( 'quantity' , $ this -> getSubmitted ( 'quantity' , 1 ) ) ; $ this -> validateComponent ( 'cart' ) ; }
docstring: Validates adding a product to cart
docstring_tokens: Validates adding a product to cart