Skip to content

Commit f6eac9e

Browse files
dkd-friedrichdkd-kaehm
authored andcommitted
[BUGFIX] Fix CS issues
Fixes formatting issue to meet the TYPO3 Coding Standards.
1 parent cc4ed10 commit f6eac9e

File tree

29 files changed

+122
-132
lines changed

29 files changed

+122
-132
lines changed

Classes/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public static function isValidApiKey(string $apiKey): bool
3939
public static function getApiKey(): string
4040
{
4141
return sha1(
42-
$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] .
43-
'tx_solr_api'
42+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
43+
. 'tx_solr_api'
4444
);
4545
}
4646
}

Classes/Controller/Backend/Search/CoreOptimizationModuleController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ protected function deleteExistingSynonym(
357357
): void {
358358
$coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
359359

360-
if (!$deleteSynonymsBefore &&
361-
$overrideExisting &&
362-
$coreAdmin->getSynonyms($baseWord)
360+
if (!$deleteSynonymsBefore
361+
&& $overrideExisting
362+
&& $coreAdmin->getSynonyms($baseWord)
363363
) {
364364
$coreAdmin->deleteSynonym($baseWord);
365365
}

Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ protected function callPostProcessGarbageCollectorHook(string $table, int $uid):
235235
if ($garbageCollectorPostProcessor instanceof GarbageCollectorPostProcessor) {
236236
$garbageCollectorPostProcessor->postProcessGarbageCollector($table, $uid);
237237
} else {
238-
$message = get_class($garbageCollectorPostProcessor) . ' must implement interface ' .
239-
GarbageCollectorPostProcessor::class;
238+
$message = get_class($garbageCollectorPostProcessor) . ' must implement interface '
239+
. GarbageCollectorPostProcessor::class;
240240
throw new UnexpectedValueException($message, 1345807460);
241241
}
242242
}

Classes/Domain/Search/FrequentSearches/FrequentSearchesService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ protected function getFrequentSearchTermsFromStatistics(array $frequentSearchCon
110110
$checkLanguageWhere = '';
111111
}
112112

113-
$frequentSearchConfiguration['select.']['ADD_WHERE'] = $checkRootPidWhere .
114-
$checkLanguageWhere . ' ' .
115-
$frequentSearchConfiguration['select.']['ADD_WHERE'];
113+
$frequentSearchConfiguration['select.']['ADD_WHERE'] = $checkRootPidWhere
114+
. $checkLanguageWhere . ' '
115+
. $frequentSearchConfiguration['select.']['ADD_WHERE'];
116116

117117
$frequentSearchTerms = $this->statisticsRepository
118118
->getFrequentSearchTermsFromStatisticsByFrequentSearchConfiguration($frequentSearchConfiguration);

Classes/Domain/Search/ResultSet/Facets/UrlFacetContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function __construct(
6666
) {
6767
// Take care that the url style matches in case and is one of the allowed values
6868
$parameterStyle = strtolower(trim($parameterStyle));
69-
if (empty($parameterStyle) ||
70-
(!in_array($parameterStyle, [self::PARAMETER_STYLE_INDEX, self::PARAMETER_STYLE_ASSOC]))) {
69+
if (empty($parameterStyle)
70+
|| (!in_array($parameterStyle, [self::PARAMETER_STYLE_INDEX, self::PARAMETER_STYLE_ASSOC]))) {
7171
$parameterStyle = self::PARAMETER_STYLE_INDEX;
7272
}
7373
$this->argumentsAccessor = $argumentsAccessor;

Classes/Domain/Search/Score/ScoreCalculationService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function render(array $highScores): string
4242

4343
foreach ($highScores as $highScore) {
4444
/** @var Score $highScore */
45-
$scores[] =
46-
'<td>+ ' . htmlspecialchars(number_format($highScore->getScore(), 9)) . '</td>'
45+
$scores[]
46+
= '<td>+ ' . htmlspecialchars(number_format($highScore->getScore(), 9)) . '</td>'
4747
. '<td>' . htmlspecialchars($highScore->getFieldName()) . '</td>'
4848
. '<td>' . htmlspecialchars(number_format($highScore->getBoost(), 9)) . '</td>';
4949
$totalScore += $highScore->getScore();

Classes/Domain/Search/SearchRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ public function reset(): SearchRequest
562562
$this->activeFacetContainer = new UrlFacetContainer(
563563
$this->argumentsAccessor,
564564
$this->argumentNameSpace ?? self::DEFAULT_PLUGIN_NAMESPACE,
565-
$this->contextTypoScriptConfiguration === null ?
566-
UrlFacetContainer::PARAMETER_STYLE_INDEX :
567-
$this->contextTypoScriptConfiguration->getSearchFacetingUrlParameterStyle()
565+
$this->contextTypoScriptConfiguration === null
566+
? UrlFacetContainer::PARAMETER_STYLE_INDEX
567+
: $this->contextTypoScriptConfiguration->getSearchFacetingUrlParameterStyle()
568568
);
569569

570570
// If the default of sorting parameter should be true, a modification of this condition is needed.

Classes/Domain/Search/SearchRequestBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ protected function applyPassedResultsPerPage(SearchRequest $searchRequest): Sear
8787
*/
8888
protected function shouldHideResultsFromInitialSearch(SearchRequest $searchRequest): bool
8989
{
90-
return ($this->typoScriptConfiguration->getSearchInitializeWithEmptyQuery() ||
91-
$this->typoScriptConfiguration->getSearchInitializeWithQuery()) &&
92-
!$this->typoScriptConfiguration->getSearchShowResultsOfInitialEmptyQuery() &&
93-
!$this->typoScriptConfiguration->getSearchShowResultsOfInitialQuery() &&
94-
$searchRequest->getRawUserQueryIsNull();
90+
return ($this->typoScriptConfiguration->getSearchInitializeWithEmptyQuery()
91+
|| $this->typoScriptConfiguration->getSearchInitializeWithQuery())
92+
&& !$this->typoScriptConfiguration->getSearchShowResultsOfInitialEmptyQuery()
93+
&& !$this->typoScriptConfiguration->getSearchShowResultsOfInitialQuery()
94+
&& $searchRequest->getRawUserQueryIsNull();
9595
}
9696

9797
/**

Classes/Domain/Site/Site.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ public function getPages(
223223
}
224224

225225
if ($additionalWhereClause !== null) {
226-
$initialPagesAdditionalWhereClause .=
227-
($initialPagesAdditionalWhereClause !== '' ? ' AND ' : '')
226+
$initialPagesAdditionalWhereClause
227+
.= ($initialPagesAdditionalWhereClause !== '' ? ' AND ' : '')
228228
. '(' . $additionalWhereClause . ')';
229229
}
230230

Classes/EventListener/PageIndexer/FrontendGroupsModifier.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public function __invoke(ModifyResolvedFrontendGroupsEvent $event): void
5050
if ((int)$pageIndexerRequest->getParameter('userGroup') === 0
5151
&& (
5252
(int)$pageIndexerRequest->getParameter('pageUserGroup') !== -2
53-
&&
54-
(int)$pageIndexerRequest->getParameter('pageUserGroup') < 1
53+
&& (int)$pageIndexerRequest->getParameter('pageUserGroup') < 1
5554
)
5655
&& $noRelevantFrontendUserGroupResolved
5756
) {

0 commit comments

Comments
 (0)