Skip to content
Snippets Groups Projects
Commit 7f30953c authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Cleanup

parent 90f8af53
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\SgJobs\Controller;
/***************************************************************
* Copyright notice
*
......@@ -26,6 +24,9 @@ namespace SGalinski\SgJobs\Controller;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
namespace SGalinski\SgJobs\Controller;
use Psr\Http\Message\ResponseInterface;
use SGalinski\SgJobs\Domain\Repository\JobRepository;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
......@@ -49,9 +50,9 @@ class JobTeaserController extends ActionController {
/**
* Get marked offers and display them
*
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
* @return ResponseInterface|null
*/
public function indexAction(): ?\Psr\Http\Message\ResponseInterface {
public function indexAction(): ?ResponseInterface {
$filters = [];
if (isset($this->settings['filterByDepartment']) && $this->settings['filterByDepartment'] !== '') {
$filters['filterByDepartment'] = $this->settings['filterByDepartment'];
......@@ -98,9 +99,9 @@ class JobTeaserController extends ActionController {
* Build Typo3 11 Response
*
* @param string|NULL $html
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
protected function htmlResponse(string $html = NULL): \Psr\Http\Message\ResponseInterface {
protected function htmlResponse(string $html = NULL): ResponseInterface {
return $this->responseFactory->createResponse()
->withHeader('Content-Type', 'text/html; charset=utf-8')
->withBody($this->streamFactory->createStream($html ?? $this->view->render()));
......
{namespace sg=SGalinski\SgJobs\ViewHelpers}
<f:layout name="Default" />
<f:section name="main">
<f:render partial="JoblistListSchema" arguments="{_all}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment