Fixed typo in comments and remove unnecessary cart load in CartRepository

This commit is contained in:
jitendra 2022-08-09 20:02:40 +05:30
parent 759d360b2b
commit 11efdc68b2
3 changed files with 6 additions and 8 deletions

View File

@ -170,7 +170,7 @@ class CategoryRepository extends Repository
}
/**
* Retrive category from slug.
* Retrieve category from slug.
*
* @param string $slug
* @return \Webkul\Category\Contracts\Category

View File

@ -11,7 +11,6 @@ class CartRepository extends Repository
*
* @return Mixed
*/
function model()
{
return 'Webkul\Checkout\Contracts\Cart';
@ -23,9 +22,8 @@ class CartRepository extends Repository
* @param int $cartId
* @return bool
*/
public function deleteParent($cartId) {
$cart = $this->model->find($cartId);
public function deleteParent($cartId)
{
return $this->model->destroy($cartId);
}
}