Passed
Branch master (4b584b)
by Mikołaj
07:42
created
Category
src/Context/WishlistContext.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,15 +57,13 @@
 block discarded – undo
57 57
 
58 58
         if (null !== $cookieWishlistId && !$user instanceof ShopUserInterface) {
59 59
             return $this->wishlistRepository->find($cookieWishlistId) ?
60
-                $this->wishlistRepository->find($cookieWishlistId) :
61
-                $this->wishlistFactory->createNew()
60
+                $this->wishlistRepository->find($cookieWishlistId) : $this->wishlistFactory->createNew()
62 61
             ;
63 62
         }
64 63
 
65 64
         if ($user instanceof ShopUserInterface) {
66 65
             return $this->wishlistRepository->findByShopUser($user) ?
67
-                $this->wishlistRepository->findByShopUser($user) :
68
-                $this->wishlistFactory->createForUser($user)
66
+                $this->wishlistRepository->findByShopUser($user) : $this->wishlistFactory->createForUser($user)
69 67
             ;
70 68
         }
71 69
 
Please login to merge, or discard this patch.