From 7f5cb2e0d6aa84d200024b68ec4d58d6f245a3c3 Mon Sep 17 00:00:00 2001 From: Hannes Bochmann Date: Wed, 3 Jan 2024 09:15:37 +0100 Subject: [PATCH] Cleanup fix cs --- Classes/Controller/BaseController.php | 2 +- Classes/Service/FileService.php | 2 +- Classes/User/InlineControl/ImageGenerationButton.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/BaseController.php b/Classes/Controller/BaseController.php index d120acd..798e097 100644 --- a/Classes/Controller/BaseController.php +++ b/Classes/Controller/BaseController.php @@ -29,7 +29,7 @@ public function initializeAction(): void if (11 === $typo3Version->getMajorVersion()) { $cropperPath = PathUtility::getPublicResourceWebPath('EXT:mkcontentai/Resources/Public/JavaScript/cropper'); } - $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/MkContentAi'); $pageRenderer->addRequireJsConfiguration( [ diff --git a/Classes/Service/FileService.php b/Classes/Service/FileService.php index 96c18a6..955532f 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 */ diff --git a/Classes/User/InlineControl/ImageGenerationButton.php b/Classes/User/InlineControl/ImageGenerationButton.php index 23080b5..ede9789 100644 --- a/Classes/User/InlineControl/ImageGenerationButton.php +++ b/Classes/User/InlineControl/ImageGenerationButton.php @@ -45,7 +45,7 @@ public function render(): string $item .= htmlspecialchars('AI generation of image by text prompt'); $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'); return $item;