@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * @return array<TagsPostHeaderDto> |
15 | 15 | */ |
16 | - public function findPostHeaders(): array |
|
16 | + public function findPostHeaders(): array |
|
17 | 17 | { |
18 | 18 | $headerClass = TagPostHeader::class; |
19 | 19 | $dtoClass = TagsPostHeaderDto::class; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param CommentsCountUpdatedTagsIEvent $event |
26 | 26 | */ |
27 | - public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $event): void |
|
27 | + public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $event): void |
|
28 | 28 | { |
29 | 29 | $this->transactionFactory |
30 | 30 | ->createTransaction(function () use ($event) { |
@@ -11,15 +11,15 @@ |
||
11 | 11 | /** |
12 | 12 | * @param CreateNewTagsPostHeaderDto $newPostHeader |
13 | 13 | */ |
14 | - public function createPostHeader(CreateNewTagsPostHeaderDto $newPostHeader): void; |
|
14 | + public function createPostHeader(CreateNewTagsPostHeaderDto $newPostHeader): void; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @param UpdateExistingTagsPostHeaderDto $updatedPostHeader |
18 | 18 | */ |
19 | - public function updatePostHeader(UpdateExistingTagsPostHeaderDto $updatedPostHeader): void; |
|
19 | + public function updatePostHeader(UpdateExistingTagsPostHeaderDto $updatedPostHeader): void; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param DeleteExistingTagsPostHeaderDto $deletedPostHeader |
23 | 23 | */ |
24 | - public function deletePostHeader(DeleteExistingTagsPostHeaderDto $deletedPostHeader): void; |
|
24 | + public function deletePostHeader(DeleteExistingTagsPostHeaderDto $deletedPostHeader): void; |
|
25 | 25 | } |
26 | 26 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @return string |
23 | 23 | */ |
24 | - public function getManagerName(): string |
|
24 | + public function getManagerName(): string |
|
25 | 25 | { |
26 | 26 | return "posts"; |
27 | 27 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * @param DeleteExistingPostDto $dto |
15 | 15 | */ |
16 | - public function deletePost(DeleteExistingPostDto $dto): void |
|
16 | + public function deletePost(DeleteExistingPostDto $dto): void |
|
17 | 17 | { |
18 | 18 | $em = $this->getEntityManager(); |
19 | 19 | $em |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * @param UpdateExistingPostDto $dto |
14 | 14 | */ |
15 | - public function updatePost(UpdateExistingPostDto $dto): void |
|
15 | + public function updatePost(UpdateExistingPostDto $dto): void |
|
16 | 16 | { |
17 | 17 | |
18 | 18 | $this->getEntityManager() |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * @param DeletePostCommand $command |
31 | 31 | */ |
32 | - public function deletePost(DeletePostCommand $command): void |
|
32 | + public function deletePost(DeletePostCommand $command): void |
|
33 | 33 | { |
34 | 34 | $this->validator->preDelete($command); |
35 | 35 | $deletedPost = $this->fromDeleteCommand($command); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * @param CommentCreatedPostsIEvent $event |
29 | 29 | */ |
30 | - public function onCommentCreated(CommentCreatedPostsIEvent $event): void |
|
30 | + public function onCommentCreated(CommentCreatedPostsIEvent $event): void |
|
31 | 31 | { |
32 | 32 | $this->postValidator->preHandleCommentCreated($event); |
33 | 33 | $this->transactionFactory |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ->execute(); |
43 | 43 | } |
44 | 44 | |
45 | - public function onCommentsBaselined(CommentsBaselinedPostsIEvent $event): void |
|
45 | + public function onCommentsBaselined(CommentsBaselinedPostsIEvent $event): void |
|
46 | 46 | { |
47 | 47 | $this->postValidator->preHandleCommentsBaselined($event); |
48 | 48 | $this->transactionFactory |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param FindAllPostsQuery $query |
29 | 29 | * @return Page<FindPostHeaderQueryResponse> |
30 | 30 | */ |
31 | - public function findAllPosts(FindAllPostsQuery $query): Page |
|
31 | + public function findAllPosts(FindAllPostsQuery $query): Page |
|
32 | 32 | { |
33 | 33 | $page = $this->findingRepository->findPosts($query->getPageNo()); |
34 | 34 | return new Page(Collection::from( |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param FindPostByIdQuery $query |
49 | 49 | * @return FindPostQueryResponse|null |
50 | 50 | */ |
51 | - public function findPostById(FindPostByIdQuery $query): ?FindPostQueryResponse |
|
51 | + public function findPostById(FindPostByIdQuery $query): ?FindPostQueryResponse |
|
52 | 52 | { |
53 | 53 | return $this->toSinglePostResponse( |
54 | 54 | $this->findingRepository->findPost($query->getId()) |