| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function __invoke(RemoveWishlist $removeWishlist) |
||
| 29 | { |
||
| 30 | $wishlist = $this->wishlistRepository->findByToken($removeWishlist->getWishlistTokenValue()); |
||
| 31 | |||
| 32 | if(null === $wishlist) { |
||
| 33 | throw new NotFoundHttpException(); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->wishlistUpdater->removeWishlist($wishlist); |
||
| 37 | } |
||
| 39 |