|
2 | 2 | declare(strict_types = 1); |
3 | 3 | namespace In2code\Powermail\Controller; |
4 | 4 |
|
5 | | -use Psr\Http\Message\ResponseInterface; |
6 | | -use TYPO3\CMS\Extbase\Http\ForwardResponse; |
7 | 5 | use In2code\Powermail\Domain\Model\Answer; |
8 | 6 | use In2code\Powermail\Domain\Model\Mail; |
9 | 7 | use In2code\Powermail\Domain\Repository\PageRepository; |
|
13 | 11 | use In2code\Powermail\Utility\MailUtility; |
14 | 12 | use In2code\Powermail\Utility\ReportingUtility; |
15 | 13 | use In2code\Powermail\Utility\StringUtility; |
| 14 | +use Psr\Http\Message\ResponseInterface; |
16 | 15 | use TYPO3\CMS\Backend\Routing\Exception\RouteNotFoundException; |
17 | 16 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 17 | +use TYPO3\CMS\Extbase\Http\ForwardResponse; |
18 | 18 | use TYPO3\CMS\Extbase\Mvc\Exception\StopActionException; |
19 | 19 | use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; |
20 | 20 | use TYPO3\CMS\Extbase\Object\Exception; |
@@ -47,15 +47,14 @@ public function dispatchAction($forwardToAction = 'list'): ResponseInterface |
47 | 47 | */ |
48 | 48 | public function listAction(): ResponseInterface |
49 | 49 | { |
50 | | - |
51 | 50 | $formUids = $this->mailRepository->findGroupedFormUidsToGivenPageUid((int)$this->id); |
52 | 51 | $mails = $this->mailRepository->findAllInPid((int)$this->id, $this->settings, $this->piVars); |
53 | 52 |
|
54 | 53 | $currentPage = $this->request->hasArgument('currentPage') |
55 | 54 | ? (int)$this->request->getArgument('currentPage') |
56 | 55 | : 1; |
57 | 56 |
|
58 | | - $itemsPerPage = (int) $this->settings['perPage'] ? (int) $this->settings['perPage'] : 10; |
| 57 | + $itemsPerPage = (int)$this->settings['perPage'] ? (int)$this->settings['perPage'] : 10; |
59 | 58 | $maximumLinks = 15; |
60 | 59 |
|
61 | 60 | // Pagination for Mails |
@@ -333,7 +332,7 @@ public function fixWrongLocalizedPagesAction(): void |
333 | 332 | * Check if admin is logged in |
334 | 333 | * If not, forward to tools overview |
335 | 334 | * |
336 | | - * @return null|ResponseInterface |
| 335 | + * @return ResponseInterface|null |
337 | 336 | * @throws StopActionException |
338 | 337 | */ |
339 | 338 | protected function checkAdminPermissions(): ?ResponseInterface |
|
0 commit comments