@@ -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) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $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 | ); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function findPostHeaders(): array |
27 | 27 | { |
28 | 28 | return Collection::from($this->headersFindingRepository->findPostHeaders()) |
29 | - ->map(function ($header) { |
|
29 | + ->map(function($header) { |
|
30 | 30 | return new FindTagsPostHeadersQueryResponse( |
31 | 31 | $header->getId(), |
32 | 32 | $header->getTitle(), |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | $page = $this->headersFindingRepository->findPostHeadersByTag($query->getTag(), $query->getPageNo()); |
51 | 51 | $data = Collection::from($page->getData()) |
52 | - ->map(function ($header) { |
|
52 | + ->map(function($header) { |
|
53 | 53 | return new FindPostsByTagQueryResponse( |
54 | 54 | $header->getId(), |
55 | 55 | $header->getTitle(), |
@@ -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() |
@@ -11,5 +11,5 @@ |
||
11 | 11 | * @param CreateNewPostDto $newPost |
12 | 12 | * @return Ulid - id of the new Post |
13 | 13 | */ |
14 | - public function createPost(CreateNewPostDto $newPost): Ulid; |
|
14 | + public function createPost(CreateNewPostDto $newPost): Ulid; |
|
15 | 15 | } |
16 | 16 | \ No newline at end of file |
@@ -9,5 +9,5 @@ |
||
9 | 9 | /** |
10 | 10 | * @param UpdateExistingPostDto $dto |
11 | 11 | */ |
12 | - public function updatePost(UpdateExistingPostDto $dto): void; |
|
12 | + public function updatePost(UpdateExistingPostDto $dto): void; |
|
13 | 13 | } |
14 | 14 | \ No newline at end of file |
@@ -9,5 +9,5 @@ |
||
9 | 9 | /** |
10 | 10 | * @param DeleteExistingPostDto $dto |
11 | 11 | */ |
12 | - public function deletePost(DeleteExistingPostDto $dto): void; |
|
12 | + public function deletePost(DeleteExistingPostDto $dto): void; |
|
13 | 13 | } |
14 | 14 | \ No newline at end of file |