Skip to content

Commit

Permalink
[TASK] Respect repository return types used in BackendController
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 22, 2023
1 parent 7939ce0 commit 84333b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public function commentsAction(string $filter = null, int $blogSetup = null): Re
'activeFilter' => $filter,
'activeBlogSetup' => $blogSetup,
'commentCounts' => [
'all' => $comments['all'] instanceof QueryResultInterface ? $comments['all']->count() : count($comments['all']),
'pending' => $comments['pending'] instanceof QueryResultInterface ? $comments['pending']->count() : count($comments['pending']),
'approved' => $comments['approved'] instanceof QueryResultInterface ? $comments['approved']->count() : count($comments['approved']),
'declined' => $comments['declined'] instanceof QueryResultInterface ? $comments['declined']->count() : count($comments['declined']),
'deleted' => $comments['deleted'] instanceof QueryResultInterface ? $comments['deleted']->count() : count($comments['deleted']),
'all' => $comments['all']->count(),
'pending' => $comments['pending']->count(),
'approved' => $comments['approved']->count(),
'declined' => $comments['declined']->count(),
'deleted' => $comments['deleted']->count(),
],
'blogSetups' => $this->setupService->determineBlogSetups(),
'comments' => $this->commentRepository->findAllByFilter($filter, $blogSetup),
Expand Down

0 comments on commit 84333b9

Please sign in to comment.