original_string: protected function addToWishlist(array $cart)
      {
          $data = array(
              'user_id' => $cart['user_id'],
              'store_id' => $cart['store_id'],
              'product_id' => $cart['product_id']
          );
  
          return $this->wishlist_action->add($data);
      }
code: protected function addToWishlist(array $cart)
      {
          $data = array(
              'user_id' => $cart['user_id'],
              'store_id' => $cart['store_id'],
              'product_id' => $cart['product_id']
          );
  
          return $this->wishlist_action->add($data);
      }
code_tokens: protected function addToWishlist ( array $ cart ) { $ data = array ( 'user_id' => $ cart [ 'user_id' ] , 'store_id' => $ cart [ 'store_id' ] , 'product_id' => $ cart [ 'product_id' ] ) ; return $ this -> wishlist_action -> add ( $ data ) ; }
docstring: Adds a product to the wishlist
  @param array $cart
  @return array
docstring_tokens: Adds a product to the wishlist