@@ -28,7 +28,7 @@ |
||
28 | 28 | * @return Response |
29 | 29 | */ |
30 | 30 | #[Route('/{userId}', methods: ['GET'])] |
31 | - public function getPostsByUserId(string $userId, Request $request): Response |
|
31 | + public function getPostsByUserId(string $userId, Request $request): Response |
|
32 | 32 | { |
33 | 33 | $pageNo = $request->query->get("pageNo", "1"); |
34 | 34 | return $this->json( |
@@ -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 "tags"; |
27 | 27 | } |
@@ -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; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @param CreateNewTagsPostHeaderDto $newPostHeader |
15 | 15 | */ |
16 | - public function createPostHeader(CreateNewTagsPostHeaderDto $newPostHeader): void |
|
16 | + public function createPostHeader(CreateNewTagsPostHeaderDto $newPostHeader): void |
|
17 | 17 | { |
18 | 18 | $post = new TagPostHeader(); |
19 | 19 | $post->setId($newPostHeader->getId()); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * @param UpdateExistingTagsPostHeaderDto $updatedPostHeader |
33 | 33 | */ |
34 | - public function updatePostHeader(UpdateExistingTagsPostHeaderDto $updatedPostHeader): void |
|
34 | + public function updatePostHeader(UpdateExistingTagsPostHeaderDto $updatedPostHeader): void |
|
35 | 35 | { |
36 | 36 | $this->getEntityManager() |
37 | 37 | ->createQueryBuilder() |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * @param DeleteExistingTagsPostHeaderDto $deletedPostHeader |
55 | 55 | */ |
56 | - public function deletePostHeader(DeleteExistingTagsPostHeaderDto $deletedPostHeader): void |
|
56 | + public function deletePostHeader(DeleteExistingTagsPostHeaderDto $deletedPostHeader): void |
|
57 | 57 | { |
58 | 58 | $entityManager = $this->getEntityManager(); |
59 | 59 | $entityManager |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @param Ulid $postId |
25 | 25 | * @param array $tags |
26 | 26 | */ |
27 | - public function createUpdateTags(Ulid $postId, array $tags): void |
|
27 | + public function createUpdateTags(Ulid $postId, array $tags): void |
|
28 | 28 | { |
29 | 29 | $this->tagsUpdatingRepository->removePostFromTags($postId); |
30 | 30 | foreach ($tags as $tag) { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | |
37 | - public function deleteEmptyTags(): void |
|
37 | + public function deleteEmptyTags(): void |
|
38 | 38 | { |
39 | 39 | $this->tagsDeletingRepository->deleteEmptyTags(); |
40 | 40 | } |
@@ -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 | } |