diff --git a/Classes/Backend/EventListener/CustomFileControlsEventListener.php b/Classes/Backend/EventListener/CustomFileControlsEventListener.php index db7abb0..43e11b3 100644 --- a/Classes/Backend/EventListener/CustomFileControlsEventListener.php +++ b/Classes/Backend/EventListener/CustomFileControlsEventListener.php @@ -61,7 +61,7 @@ public function handleEvent(CustomFileControlsEvent $event): void $event->addControl($item); - $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); + $pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Mkcontentai/BackendPrompt'); } } diff --git a/Classes/Controller/AiImageController.php b/Classes/Controller/AiImageController.php index 4f26260..7be8c3e 100644 --- a/Classes/Controller/AiImageController.php +++ b/Classes/Controller/AiImageController.php @@ -117,7 +117,7 @@ private function initializeClient(): array } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface * * @throws \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException */ @@ -147,7 +147,7 @@ protected function handleResponse(): ResponseInterface } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface * * @throws \TYPO3\CMS\Core\Resource\Exception\ExistingTargetFileNameException */ @@ -198,7 +198,7 @@ public function promptResultAjaxAction(ServerRequestInterface $request) } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface */ public function variantsAction(File $file) { @@ -220,7 +220,7 @@ public function variantsAction(File $file) } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface */ public function promptAction() { @@ -228,7 +228,7 @@ public function promptAction() } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface * * @throws \TYPO3\CMS\Core\Resource\Exception\ExistingTargetFileNameException */ @@ -252,7 +252,7 @@ public function promptResultAction(string $text) } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface */ public function upscaleAction(File $file) { @@ -273,7 +273,7 @@ public function upscaleAction(File $file) } /** - * @return \Psr\Http\Message\ResponseInterface + * @return ResponseInterface */ public function extendAction(string $direction, File $file = null, string $base64 = '') { diff --git a/Classes/Service/FileService.php b/Classes/Service/FileService.php index 86cca8f..5abc965 100644 --- a/Classes/Service/FileService.php +++ b/Classes/Service/FileService.php @@ -103,7 +103,7 @@ public function getFiles(): array } /** - * @return \TYPO3\CMS\Core\Resource\Folder|\TYPO3\CMS\Core\Resource\InaccessibleFolder + * @return Folder|\TYPO3\CMS\Core\Resource\InaccessibleFolder * * @throws \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException */