original_string: protected function validateCartItemCheckout($sku, $item)
      {
          $item += array(
              'sku' => $sku,
              'increment' => false,
              'admin' => !empty($this->admin),
              'user_id' => $this->order_user_id,
              'store_id' => $this->order_store_id
          );
  
          $this->setSubmitted('update', $item);
          $this->setSubmitted("cart.items.$sku", $item);
  
          return $this->validateComponent('cart', array('parents' => "cart.items.$sku"));
      }
code: protected function validateCartItemCheckout($sku, $item)
      {
          $item += array(
              'sku' => $sku,
              'increment' => false,
              'admin' => !empty($this->admin),
              'user_id' => $this->order_user_id,
              'store_id' => $this->order_store_id
          );
  
          $this->setSubmitted('update', $item);
          $this->setSubmitted("cart.items.$sku", $item);
  
          return $this->validateComponent('cart', array('parents' => "cart.items.$sku"));
      }
code_tokens: protected function validateCartItemCheckout ( $ sku , $ item ) { $ item += array ( 'sku' => $ sku , 'increment' => false , 'admin' => ! empty ( $ this -> admin ) , 'user_id' => $ this -> order_user_id , 'store_id' => $ this -> order_store_id ) ; $ this -> setSubmitted ( 'update' , $ item ) ; $ this -> setSubmitted ( "cart.items.$sku" , $ item ) ; return $ this -> validateComponent ( 'cart' , array ( 'parents' => "cart.items.$sku" ) ) ; }
docstring: Validates a cart item and returns possible errors
  @param string $sku
  @param array $item
  @return array
docstring_tokens: Validates a cart item and returns possible errors