Skip to content

Commit

Permalink
Cleanup fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Jan 3, 2024
1 parent ab9ca55 commit 471ae7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
14 changes: 7 additions & 7 deletions Classes/Controller/AiImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function initializeClient(): array
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*
* @throws \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException
*/
Expand Down Expand Up @@ -147,7 +147,7 @@ protected function handleResponse(): ResponseInterface
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*
* @throws \TYPO3\CMS\Core\Resource\Exception\ExistingTargetFileNameException
*/
Expand Down Expand Up @@ -198,7 +198,7 @@ public function promptResultAjaxAction(ServerRequestInterface $request)
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
public function variantsAction(File $file)
{
Expand All @@ -220,15 +220,15 @@ public function variantsAction(File $file)
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
public function promptAction()
{
return $this->handleResponse();
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*
* @throws \TYPO3\CMS\Core\Resource\Exception\ExistingTargetFileNameException
*/
Expand All @@ -252,7 +252,7 @@ public function promptResultAction(string $text)
}

/**
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
public function upscaleAction(File $file)
{
Expand All @@ -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 = '')
{
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 471ae7f

Please sign in to comment.