@@ -23,7 +23,7 @@ |
||
23 | 23 | public function findPostHeaders(): array |
24 | 24 | { |
25 | 25 | return Collection::from($this->headersFindingRepository->findPostHeaders()) |
26 | - ->map(function ($header) { |
|
26 | + ->map(function($header) { |
|
27 | 27 | return new FindCommentsPostHeadersQueryResponse( |
28 | 28 | $header->getId(), |
29 | 29 | $header->getTitle(), |
@@ -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(), |
@@ -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(), |