|
29 | 29 | final class CreateNewWishlistHandler |
30 | 30 | { |
31 | 31 | public function __construct( |
32 | | - private WishlistRepositoryInterface $wishlistRepository, |
33 | | - private TokenStorageInterface $tokenStorage, |
34 | | - private WishlistFactoryInterface $wishlistFactory, |
| 32 | + private WishlistRepositoryInterface $wishlistRepository, |
| 33 | + private TokenStorageInterface $tokenStorage, |
| 34 | + private WishlistFactoryInterface $wishlistFactory, |
35 | 35 | private WishlistCookieTokenResolverInterface $wishlistCookieTokenResolver, |
36 | | - private ChannelRepositoryInterface $channelRepository, |
37 | | - private WishlistNameCheckerInterface $wishlistNameChecker, |
38 | | - private TokenUserResolverInterface $tokenUserResolver, |
39 | | - ) { |
| 36 | + private ChannelRepositoryInterface $channelRepository, |
| 37 | + private WishlistNameCheckerInterface $wishlistNameChecker, |
| 38 | + private TokenUserResolverInterface $tokenUserResolver, |
| 39 | + ) |
| 40 | + { |
40 | 41 | } |
41 | 42 |
|
42 | 43 | public function __invoke(CreateNewWishlist $createNewWishlist): int |
@@ -73,7 +74,7 @@ public function __invoke(CreateNewWishlist $createNewWishlist): int |
73 | 74 | } else { |
74 | 75 | /** @var WishlistInterface $newWishlist */ |
75 | 76 | foreach ($wishlists as $newWishlist) { |
76 | | - if (!$this->wishlistNameChecker->check((string) $newWishlist->getName(), $createNewWishlist->getName())) { |
| 77 | + if (!$this->wishlistNameChecker->check((string)$newWishlist->getName(), $createNewWishlist->getName())) { |
77 | 78 | $wishlist->setName($createNewWishlist->getName()); |
78 | 79 | } else { |
79 | 80 | throw new WishlistNameIsTakenException(); |
|
0 commit comments