From ed08f9ec19121192746a76e854cfe48169977aad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20B=C3=BClter?=
Date: Fri, 4 Oct 2024 13:01:18 +0200
Subject: [PATCH] [TASK] Apply code style fixes
---
Classes/Backend/Filterlist.php | 3 +-
.../Controller/BackendModuleController.php | 3 +-
Classes/Indexer/IndexerBase.php | 6 ++--
Classes/Indexer/IndexerRunner.php | 29 +++++++++----------
Classes/Indexer/Types/News.php | 5 ++--
Classes/Indexer/Types/Page.php | 6 ++--
Classes/Indexer/Types/TtContent.php | 3 +-
Classes/Indexer/Types/TtNews.php | 3 +-
Classes/Lib/Items.php | 3 +-
Classes/Lib/SearchHelper.php | 2 +-
Classes/Lib/Searchphrase.php | 2 +-
Classes/Lib/Searchresult.php | 2 +-
Classes/Plugins/PluginBase.php | 17 +++++------
Classes/Service/AdditionalContentService.php | 4 +--
Classes/Widgets/StatusWidget.php | 5 ++--
Configuration/TCA/Overrides/tt_content.php | 1 +
Configuration/TCA/tx_kesearch_filters.php | 1 +
Configuration/TCA/tx_kesearch_index.php | 1 +
.../TCA/tx_kesearch_indexerconfig.php | 1 +
19 files changed, 43 insertions(+), 54 deletions(-)
diff --git a/Classes/Backend/Filterlist.php b/Classes/Backend/Filterlist.php
index 7c609fcf6..966a7d84a 100644
--- a/Classes/Backend/Filterlist.php
+++ b/Classes/Backend/Filterlist.php
@@ -170,8 +170,7 @@ public function getListOfAvailableFilteroptionsForFlexforms(&$config)
}
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilteroptionsForFlexforms'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilteroptionsForFlexforms'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilteroptionsForFlexforms'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyFilteroptionsForFlexforms($config, $rowFilter, $this);
}
diff --git a/Classes/Controller/BackendModuleController.php b/Classes/Controller/BackendModuleController.php
index d31c57a85..22c5e9e17 100644
--- a/Classes/Controller/BackendModuleController.php
+++ b/Classes/Controller/BackendModuleController.php
@@ -639,8 +639,7 @@ public function getStatisticTableData(
string $pageColumn,
int $pageUid,
string $tableCol
- ): array
- {
+ ): array {
$queryBuilder = Db::getQueryBuilder($table);
$queryBuilder->getRestrictions()->removeAll();
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
diff --git a/Classes/Indexer/IndexerBase.php b/Classes/Indexer/IndexerBase.php
index bc6f50c50..a620837ef 100644
--- a/Classes/Indexer/IndexerBase.php
+++ b/Classes/Indexer/IndexerBase.php
@@ -26,8 +26,8 @@
use Tpwd\KeSearch\Lib\SearchHelper;
use Tpwd\KeSearch\Service\IndexerStatusService;
use Tpwd\KeSearch\Utility\FileUtility;
-use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Connection;
+use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\QueryBuilder;
use TYPO3\CMS\Core\Database\Query\QueryHelper;
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
@@ -312,9 +312,9 @@ public function addTagsToRecords($uids, $pageWhere = '')
->fetchAllAssociative();
if (!empty($pageWhere)) {
- $where = $pageWhere . ' AND ';
+ $where = $pageWhere . ' AND ';
} else {
- $where = '';
+ $where = '';
}
$where .= 'no_search <> 1 ';
diff --git a/Classes/Indexer/IndexerRunner.php b/Classes/Indexer/IndexerRunner.php
index ffb603a66..b8087532d 100644
--- a/Classes/Indexer/IndexerRunner.php
+++ b/Classes/Indexer/IndexerRunner.php
@@ -22,8 +22,6 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
-use Exception;
-use PDO;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Tpwd\KeSearch\Domain\Repository\IndexRepository;
@@ -449,7 +447,7 @@ public function prepareStatements()
AND language = ?
LIMIT 1
"');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while preparing searchStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -475,7 +473,7 @@ public function prepareStatements()
tstamp=?' . $addUpdateQuery . '
WHERE uid=?
"');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while preparing updateStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -490,7 +488,7 @@ public function prepareStatements()
. ' starttime, endtime, fe_group, tstamp, crdate' . $addInsertQueryFields . ')
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?' . $addInsertQueryValues . ', ?)
"');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while preparing insertStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -503,7 +501,7 @@ public function prepareStatements()
if ($this->indexRepository->getTotalNumberOfRecords() == 0) {
try {
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement('ALTER TABLE tx_kesearch_index DISABLE KEYS');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while disabling keys: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -520,7 +518,7 @@ public function cleanUpProcessAfterIndexing()
try {
Db::getDatabaseConnection('tx_kesearch_index')
->executeStatement('ALTER TABLE tx_kesearch_index ENABLE KEYS');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while enabling keys: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -529,7 +527,7 @@ public function cleanUpProcessAfterIndexing()
try {
Db::getDatabaseConnection('tx_kesearch_index')
->executeStatement('DEALLOCATE PREPARE searchStmt');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while deallocating searchStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -538,7 +536,7 @@ public function cleanUpProcessAfterIndexing()
try {
Db::getDatabaseConnection('tx_kesearch_index')
->executeStatement('DEALLOCATE PREPARE updateStmt');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while deallocating updateStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -547,7 +545,7 @@ public function cleanUpProcessAfterIndexing()
try {
Db::getDatabaseConnection('tx_kesearch_index')
->executeStatement('DEALLOCATE PREPARE insertStmt');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$errorMessage = 'Error while deallocating insertStmt: ' . $e->getMessage();
$this->logger->error($errorMessage);
$this->indexingErrors[] = $errorMessage;
@@ -644,7 +642,7 @@ public function rotateSphinxIndex()
$content .= 'Checking status of Sphinx daemon: ';
$sphinxFailedToConnect = false;
foreach ($retArr as $retRow) {
- if (strpos($retRow, 'WARNING') !== false) {
+ if (str_contains($retRow, 'WARNING')) {
$this->logger->warning('Sphinx: ' . $retRow);
$content .= 'SPHINX ' . $retRow . '
' . "\n";
$sphinxFailedToConnect = true;
@@ -680,7 +678,7 @@ public function rotateSphinxIndex()
. '
'
. "\n\n";
foreach ($retArr as $retRow) {
- if (strpos($retRow, 'WARNING') !== false) {
+ if (str_contains($retRow, 'WARNING')) {
$this->logger->error('Sphinx: ' . $retRow);
$content .= 'SPHINX ' . $retRow . '
' . "\n";
}
@@ -734,8 +732,7 @@ public function storeInIndex(
$fe_group = '',
$debugOnly = false,
$additionalFields = []
- ): bool
- {
+ ): bool {
// if there are errors found in current record return false and break processing
if (!$this->checkIfRecordHasErrorsBeforeIndexing($storagePid, $title, $type, $targetPid)) {
return false;
@@ -892,7 +889,7 @@ public function insertRecordIntoIndex($fieldValues, bool $debugOnly = false)
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement($queryArray['set']);
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement($queryArray['execute']);
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement('COMMIT;');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$this->logger->error($e->getMessage());
$this->indexingErrors[] = $e->getMessage();
}
@@ -953,7 +950,7 @@ public function updateRecordInIndex($fieldValues, bool $debugOnly = false)
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement($queryArray['set']);
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement($queryArray['execute']);
Db::getDatabaseConnection('tx_kesearch_index')->executeStatement('COMMIT;');
- } catch (Exception $e) {
+ } catch (\Exception $e) {
// @extensionScannerIgnoreLine
$this->logger->error($e->getMessage());
$this->indexingErrors[] = $e->getMessage();
diff --git a/Classes/Indexer/Types/News.php b/Classes/Indexer/Types/News.php
index d95085cb7..84ff60320 100644
--- a/Classes/Indexer/Types/News.php
+++ b/Classes/Indexer/Types/News.php
@@ -294,8 +294,7 @@ public function startIndexing()
// hook for custom modifications of the indexed data, e.g. the tags
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtNewsIndexEntry'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtNewsIndexEntry'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtNewsIndexEntry'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyExtNewsIndexEntry(
$title,
@@ -416,7 +415,7 @@ private function getCategoryData($newsRecord)
$categoryData['single_pid'] = 0;
if ($categoryData['uid_list']) {
- foreach ($categoryData['uid_list']as $categoryUid) {
+ foreach ($categoryData['uid_list'] as $categoryUid) {
$newsCat = $categoryRepository->findByUid($categoryUid);
// check if this category has a single_pid and if this page really is reachable (not deleted, hidden or time restricted)
if ($newsCat['single_pid'] && !$categoryData['single_pid'] && $pageRepository->findByUid($newsCat['single_pid'])) {
diff --git a/Classes/Indexer/Types/Page.php b/Classes/Indexer/Types/Page.php
index c14c85ee8..26daf1e8f 100644
--- a/Classes/Indexer/Types/Page.php
+++ b/Classes/Indexer/Types/Page.php
@@ -1198,8 +1198,7 @@ public function storeFileContentToIndex($fileObject, $content, $fileIndexerObjec
//hook for custom modifications of the indexed data, e. g. the tags
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFileIndexEntryFromContentIndexer'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFileIndexEntryFromContentIndexer'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFileIndexEntryFromContentIndexer'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyFileIndexEntryFromContentIndexer(
$fileObject,
@@ -1258,8 +1257,7 @@ public function getContentFromContentElement(array $ttContentRow, string $field
// hook for modifiying a content elements content
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentFromContentElement'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentFromContentElement'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentFromContentElement'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyContentFromContentElement(
$content,
diff --git a/Classes/Indexer/Types/TtContent.php b/Classes/Indexer/Types/TtContent.php
index ce4272ba5..7e06f3583 100644
--- a/Classes/Indexer/Types/TtContent.php
+++ b/Classes/Indexer/Types/TtContent.php
@@ -215,8 +215,7 @@ public function getPageContent($uid)
// hook for custom modifications of the indexed data, e. g. the tags
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentIndexEntry'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentIndexEntry'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentIndexEntry'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyContentIndexEntry(
$row['header'],
diff --git a/Classes/Indexer/Types/TtNews.php b/Classes/Indexer/Types/TtNews.php
index 922889252..b5704acc9 100644
--- a/Classes/Indexer/Types/TtNews.php
+++ b/Classes/Indexer/Types/TtNews.php
@@ -213,8 +213,7 @@ public function startIndexing()
// hook for custom modifications of the indexed data, e.g. the tags
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtTtNewsIndexEntry'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtTtNewsIndexEntry'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyExtTtNewsIndexEntry'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->modifyExtNewsIndexEntry(
$title,
diff --git a/Classes/Lib/Items.php b/Classes/Lib/Items.php
index 0772449b9..8cfbc5530 100644
--- a/Classes/Lib/Items.php
+++ b/Classes/Lib/Items.php
@@ -34,8 +34,7 @@ public function fillIndexerConfig(&$params, $pObj)
$indexerRunner = GeneralUtility::makeInstance(IndexerRunner::class);
// hook for custom registration of further indexerConfigurations
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerIndexerConfiguration'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerIndexerConfiguration'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerIndexerConfiguration'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef, $indexerRunner);
$_procObj->registerIndexerConfiguration($params, $pObj);
}
diff --git a/Classes/Lib/SearchHelper.php b/Classes/Lib/SearchHelper.php
index 6c90fa702..9dd878e0d 100644
--- a/Classes/Lib/SearchHelper.php
+++ b/Classes/Lib/SearchHelper.php
@@ -267,7 +267,7 @@ public static function getResultLinkConfiguration(array $resultRow, $targetDefau
{
$linkConf = [];
- list($type) = explode(':', $resultRow['type']);
+ [$type] = explode(':', $resultRow['type']);
switch ($type) {
case 'file':
diff --git a/Classes/Lib/Searchphrase.php b/Classes/Lib/Searchphrase.php
index c7fefa71c..c392fdecb 100644
--- a/Classes/Lib/Searchphrase.php
+++ b/Classes/Lib/Searchphrase.php
@@ -109,7 +109,7 @@ public function checkAgainstDefaultValue($searchString)
public function explodeSearchPhrase(string $searchString, bool $replaceAdditionalWordCharacters = false)
{
preg_match_all('/([+\-~<>])?\".*?"|[^ ]+/', $searchString, $matches);
- list($searchParts) = $matches;
+ [$searchParts] = $matches;
if (is_array($searchParts) && count($searchParts)) {
foreach ($searchParts as $key => $word) {
// check for boolean seperator
diff --git a/Classes/Lib/Searchresult.php b/Classes/Lib/Searchresult.php
index eb9398855..476416553 100644
--- a/Classes/Lib/Searchresult.php
+++ b/Classes/Lib/Searchresult.php
@@ -79,7 +79,7 @@ public function getTitle(): string
// configure the link
$linkconf = $this->getResultLinkConfiguration();
- list($type) = explode(':', $this->row['type']);
+ [$type] = explode(':', $this->row['type']);
switch ($type) {
case 'file':
// if we use FAL, see if we have a title in the metadata
diff --git a/Classes/Plugins/PluginBase.php b/Classes/Plugins/PluginBase.php
index dad0221b4..6ca96495e 100644
--- a/Classes/Plugins/PluginBase.php
+++ b/Classes/Plugins/PluginBase.php
@@ -24,7 +24,6 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
-use Exception;
use Psr\Http\Message\ServerRequestInterface;
use Tpwd\KeSearch\Domain\Repository\FileMetaDataRepository;
use Tpwd\KeSearch\Domain\Repository\FileReferenceRepository;
@@ -174,7 +173,7 @@ public function init(ServerRequestInterface $request)
$currentFlexFormConfiguration = $flexFormConfiguration;
$contentElement = $this->pi_getRecord('tt_content', (int)($loadFlexformsFromOtherCE));
if (is_int($contentElement) && $contentElement == 0) {
- throw new Exception('Content element with search configuration is not set or not accessible. Maybe hidden or deleted?');
+ throw new \Exception('Content element with search configuration is not set or not accessible. Maybe hidden or deleted?');
}
$this->cObj->data['pi_flexform'] = $contentElement['pi_flexform'];
$flexFormConfiguration = array_merge($currentFlexFormConfiguration, $this->getFlexFormConfiguration());
@@ -449,8 +448,7 @@ public function renderFilters()
// hook for modifying filter options
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilterOptionsArray'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilterOptionsArray'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyFilterOptionsArray'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$options = $_procObj->modifyFilterOptionsArray($filter['uid'], $options, $this);
}
@@ -477,8 +475,7 @@ public function renderFilters()
// and $filterData['rawHtmlContent'] to your pre-rendered filter code
// hook for custom filter renderer
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customFilterRenderer'] ?? null)) {
- foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customFilterRenderer'] as
- $_classRef) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customFilterRenderer'] as $_classRef) {
$_procObj = GeneralUtility::makeInstance($_classRef);
$_procObj->customFilterRenderer($filter['uid'], $options, $this, $filterData);
}
@@ -758,7 +755,7 @@ public function getSearchResults()
// add type marker
// for file results just use the "file" type, not the file extension (eg. "file:pdf")
- list($type) = explode(':', $row['type']);
+ [$type] = explode(':', $row['type']);
$tempMarkerArray['type'] = str_replace(' ', '_', $type);
// use the markers array as a base for the fluid template values
@@ -848,7 +845,7 @@ public function getSearchResults()
*/
public function getFileReference($row): int
{
- list($type) = explode(':', $row['type']);
+ [$type] = explode(':', $row['type']);
switch ($type) {
case 'page':
if ($this->conf['showPageImages'] ?? false) {
@@ -914,7 +911,7 @@ public function getFileReference($row): int
*/
public function getTypeIconPath(string $typeComplete): string
{
- list($type) = explode(':', $typeComplete);
+ [$type] = explode(':', $typeComplete);
$name = str_replace(':', '_', $typeComplete);
if ($this->conf['resultListTypeIcon'][$name] ?? false) {
@@ -1300,7 +1297,7 @@ public function setRequest(ServerRequestInterface $request)
public function translate(string $key, string $alternativeLabel = ''): string
{
if (!str_starts_with($key, 'LLL:')) {
- $key = 'LLL:'. $this->languageFile . ':' . $key;
+ $key = 'LLL:' . $this->languageFile . ':' . $key;
}
$label = LocalizationUtility::translate($key, 'KeSearch');
if (empty($label)) {
diff --git a/Classes/Service/AdditionalContentService.php b/Classes/Service/AdditionalContentService.php
index c0fd0fd3a..18c51db54 100644
--- a/Classes/Service/AdditionalContentService.php
+++ b/Classes/Service/AdditionalContentService.php
@@ -119,14 +119,14 @@ public function findLinkedFiles(array $contentRow, string $field = 'bodytext'):
// Find files linked in RTE
$blockSplit = $this->rteHtmlParser->splitIntoBlock('A', (string)$contentRow[$field], true);
foreach ($blockSplit as $k => $v) {
- list($attributes) = $this->rteHtmlParser->get_tag_attributes($this->rteHtmlParser->getFirstTag($v), true);
+ [$attributes] = $this->rteHtmlParser->get_tag_attributes($this->rteHtmlParser->getFirstTag($v), true);
if (!empty($attributes['href'])) {
try {
$hrefInformation = $this->linkService->resolve($attributes['href']);
if ($hrefInformation['type'] === LinkService::TYPE_FILE) {
$fileObjects[] = $hrefInformation['file'];
}
- } catch (Exception $exception) {
+ } catch (\Exception $exception) {
$this->logger->error($exception->getMessage());
}
}
diff --git a/Classes/Widgets/StatusWidget.php b/Classes/Widgets/StatusWidget.php
index 253cc5d40..b8c4378c5 100644
--- a/Classes/Widgets/StatusWidget.php
+++ b/Classes/Widgets/StatusWidget.php
@@ -25,8 +25,8 @@
use Psr\Http\Message\ServerRequestInterface;
use Tpwd\KeSearch\Lib\SearchHelper;
use Tpwd\KeSearch\Utility\TimeUtility;
-use TYPO3\CMS\Core\Registry;
use TYPO3\CMS\Backend\View\BackendViewFactory;
+use TYPO3\CMS\Core\Registry;
use TYPO3\CMS\Dashboard\Widgets\RequestAwareWidgetInterface;
use TYPO3\CMS\Dashboard\Widgets\WidgetConfigurationInterface;
use TYPO3\CMS\Dashboard\Widgets\WidgetInterface;
@@ -40,8 +40,7 @@ public function __construct(
private readonly WidgetConfigurationInterface $configuration,
private readonly BackendViewFactory $backendViewFactory,
private readonly Registry $registry
- ) {
- }
+ ) {}
public function setRequest(ServerRequestInterface $request): void
{
diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php
index eafe1d110..5eb017389 100644
--- a/Configuration/TCA/Overrides/tt_content.php
+++ b/Configuration/TCA/Overrides/tt_content.php
@@ -1,4 +1,5 @@