@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param CreateNewUserDto $newUser |
14 | 14 | * @return Ulid |
15 | 15 | */ |
16 | - public function createUser(CreateNewUserDto $newUser): Ulid |
|
16 | + public function createUser(CreateNewUserDto $newUser): Ulid |
|
17 | 17 | { |
18 | 18 | $user = new User(); |
19 | 19 | $user->setEmail($newUser->getLogin()); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * @return array<UserPostHeaderDto> |
16 | 16 | */ |
17 | - public function findPostHeaders(): array |
|
17 | + public function findPostHeaders(): array |
|
18 | 18 | { |
19 | 19 | $headerClass = UserPostHeader::class; |
20 | 20 | $dtoClass = UserPostHeaderDto::class; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @param JWTCreatedEvent $event |
32 | 32 | */ |
33 | - public function onJwtCreated(JWTCreatedEvent $event): void |
|
33 | + public function onJwtCreated(JWTCreatedEvent $event): void |
|
34 | 34 | { |
35 | 35 | $payload = $event->getData(); |
36 | 36 | $user = $this->loggedInUserProvider->getUser(); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param CommentsCountUpdatedSecurityIEvent $event |
26 | 26 | */ |
27 | - public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void |
|
27 | + public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void |
|
28 | 28 | { |
29 | 29 | $this->transactionFactory |
30 | 30 | ->createTransaction(function () use ($event) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void |
28 | 28 | { |
29 | 29 | $this->transactionFactory |
30 | - ->createTransaction(function () use ($event) { |
|
30 | + ->createTransaction(function() use ($event) { |
|
31 | 31 | $this->commentsEventHandlingRepository->updatePostCommentsCount( |
32 | 32 | new UpdatePostsCommentsCountDto($event->getPostId(), $event->getCommentsCount()) |
33 | 33 | ); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function findPostHeaders(): array |
28 | 28 | { |
29 | 29 | return Collection::from($this->headersFindingRepository->findPostHeaders()) |
30 | - ->map(function ($header) { |
|
30 | + ->map(function($header) { |
|
31 | 31 | return new FindUserPostHeadersQueryResponse( |
32 | 32 | $header->getId(), |
33 | 33 | $header->getTitle(), |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $page = $this->headersFindingRepository->findPostsByUserId($query->getUserId(), $query->getPageNo()); |
52 | 52 | $data = Collection::from($page->getData()) |
53 | - ->map(function ($header) { |
|
53 | + ->map(function($header) { |
|
54 | 54 | return new FindPostsByUserIdQueryResponse( |
55 | 55 | $header->getId(), |
56 | 56 | $header->getTitle(), |
@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * @return array<UserPostHeaderDto> |
15 | 15 | */ |
16 | - public function findPostHeaders(): array; |
|
16 | + public function findPostHeaders(): array; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @return Page<UserPostHeaderDto> |
@@ -11,5 +11,5 @@ |
||
11 | 11 | * @param CreateNewUserDto $newUser |
12 | 12 | * @return Ulid |
13 | 13 | */ |
14 | - public function createUser(CreateNewUserDto $newUser): Ulid; |
|
14 | + public function createUser(CreateNewUserDto $newUser): Ulid; |
|
15 | 15 | } |
16 | 16 | \ No newline at end of file |
@@ -11,15 +11,15 @@ |
||
11 | 11 | /** |
12 | 12 | * @param CreateNewUserPostHeaderDto $newPostHeader |
13 | 13 | */ |
14 | - public function createPostHeader(CreateNewUserPostHeaderDto $newPostHeader): void; |
|
14 | + public function createPostHeader(CreateNewUserPostHeaderDto $newPostHeader): void; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @param UpdateExistingUserPostHeaderDto $updatedPostHeader |
18 | 18 | */ |
19 | - public function updatePostHeader(UpdateExistingUserPostHeaderDto $updatedPostHeader): void; |
|
19 | + public function updatePostHeader(UpdateExistingUserPostHeaderDto $updatedPostHeader): void; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param DeleteExistingUserPostHeaderDto $deletedPostHeader |
23 | 23 | */ |
24 | - public function deletePostHeader(DeleteExistingUserPostHeaderDto $deletedPostHeader): void; |
|
24 | + public function deletePostHeader(DeleteExistingUserPostHeaderDto $deletedPostHeader): void; |
|
25 | 25 | } |
26 | 26 | \ No newline at end of file |
@@ -21,27 +21,27 @@ |
||
21 | 21 | * @param CreateUserCommand $command |
22 | 22 | * @return CreateUserCommandResponse |
23 | 23 | */ |
24 | - public function createUser(CreateUserCommand $command): CreateUserCommandResponse; |
|
24 | + public function createUser(CreateUserCommand $command): CreateUserCommandResponse; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param PostCreatedSecurityIEvent $event |
28 | 28 | */ |
29 | - public function onPostCreated(PostCreatedSecurityIEvent $event): void; |
|
29 | + public function onPostCreated(PostCreatedSecurityIEvent $event): void; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param PostUpdatedSecurityIEvent $event |
33 | 33 | */ |
34 | - public function onPostUpdated(PostUpdatedSecurityIEvent $event): void; |
|
34 | + public function onPostUpdated(PostUpdatedSecurityIEvent $event): void; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param PostDeletedSecurityIEvent $event |
38 | 38 | */ |
39 | - public function onPostDeleted(PostDeletedSecurityIEvent $event): void; |
|
39 | + public function onPostDeleted(PostDeletedSecurityIEvent $event): void; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * @param CommentsCountUpdatedSecurityIEvent $event |
43 | 43 | */ |
44 | - public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void; |
|
44 | + public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @return array<FindUserPostHeadersQueryResponse> |