Skip to content

Commit b6ed906

Browse files
committed
[BUGFIX] Changes after updating php-cs-fixer
1 parent 095451e commit b6ed906

9 files changed

Lines changed: 29 additions & 29 deletions

File tree

Classes/Controller/EventController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ protected function createDemandObjectFromSettings(string $type, array $settings)
223223
EventDemand::class
224224
);
225225

226-
if (isset($settings['view'][$type]) &&
227-
is_array($settings['view'][$type])
226+
if (isset($settings['view'][$type])
227+
&& is_array($settings['view'][$type])
228228
) {
229229
// Use default TypoScript settings for plugin configuration
230230
$limit = (int)$settings['view'][$type]['limit'];

Classes/Domain/Model/EventDate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ public function getBestSpecialPrice(array $frontendUserGroupIds = []): ?SpecialP
234234
if ($this->specialPrices) {
235235
foreach ($this->specialPrices as $specialPrice) {
236236
if (!isset($bestSpecialPrice) || $specialPrice->getPrice() < $bestSpecialPrice->getPrice()) {
237-
if (!$specialPrice->getFrontendUserGroup() ||
238-
in_array($specialPrice->getFrontendUserGroup()->getUid(), $frontendUserGroupIds)
237+
if (!$specialPrice->getFrontendUserGroup()
238+
|| in_array($specialPrice->getFrontendUserGroup()->getUid(), $frontendUserGroupIds)
239239
) {
240240
$bestSpecialPrice = $specialPrice;
241241
}

Classes/Domain/Model/PriceCategory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public function getBestSpecialPrice(array $frontendUserGroupIds = []): ?SpecialP
142142
if ($this->specialPrices) {
143143
foreach ($this->specialPrices as $specialPrice) {
144144
if (!isset($bestSpecialPrice) || $specialPrice->getPrice() < $bestSpecialPrice->getPrice()) {
145-
if (!$specialPrice->getFrontendUserGroup() ||
146-
in_array($specialPrice->getFrontendUserGroup()->getUid(), $frontendUserGroupIds)
145+
if (!$specialPrice->getFrontendUserGroup()
146+
|| in_array($specialPrice->getFrontendUserGroup()->getUid(), $frontendUserGroupIds)
147147
) {
148148
$bestSpecialPrice = $specialPrice;
149149
}

Classes/Domain/Repository/CategoryRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ protected function buildSubcategories(array $categoriesArray, array $parentCateg
8181
foreach ($categoriesArray as $category) {
8282
if ($category['parent'] === $parentCategory['uid']) {
8383
$newCategory = $category;
84-
$newCategory['subcategories'] =
85-
$this->buildSubcategories($categoriesArray, $category);
84+
$newCategory['subcategories']
85+
= $this->buildSubcategories($categoriesArray, $category);
8686
$categories[] = $newCategory;
8787
}
8888
}

Classes/Domain/Repository/EventRepository.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ protected function createOrderingsFromDemand(EventDemand $demand): array
8686

8787
if (!empty($orderList)) {
8888
foreach ($orderList as $orderItem) {
89-
[$orderField, $ascDesc] =
90-
GeneralUtility::trimExplode(' ', $orderItem, true);
89+
[$orderField, $ascDesc]
90+
= GeneralUtility::trimExplode(' ', $orderItem, true);
9191
if ($ascDesc) {
92-
$orderings[$orderField] = ((strtolower($ascDesc) === 'desc') ?
93-
QueryInterface::ORDER_DESCENDING :
94-
QueryInterface::ORDER_ASCENDING);
92+
$orderings[$orderField] = ((strtolower($ascDesc) === 'desc')
93+
? QueryInterface::ORDER_DESCENDING
94+
: QueryInterface::ORDER_ASCENDING);
9595
} else {
9696
$orderings[$orderField] = QueryInterface::ORDER_ASCENDING;
9797
}

Classes/Updates/SwitchableControllerActionsPluginUpdater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ protected function getMigrationRecords(): array
153153
protected function getTargetListType(string $sourceListType, string $switchableControllerActions): string
154154
{
155155
foreach (self::MIGRATION_SETTINGS as $setting) {
156-
if ($setting['sourceListType'] === $sourceListType &&
157-
$setting['switchableControllerActions'] === $switchableControllerActions
156+
if ($setting['sourceListType'] === $sourceListType
157+
&& $setting['switchableControllerActions'] === $switchableControllerActions
158158
) {
159159
return $setting['targetListType'];
160160
}

Configuration/TCA/Overrides/tx_cartevents_domain_model_event.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959

6060
// prepend category restriction at the beginning of foreign_table_where
6161
if (!empty($categoryRestriction)) {
62-
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['category']['config']['foreign_table_where'] = $categoryRestriction .
63-
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['category']['config']['foreign_table_where'];
64-
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['categories']['config']['foreign_table_where'] = $categoryRestriction .
65-
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['categories']['config']['foreign_table_where'];
62+
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['category']['config']['foreign_table_where'] = $categoryRestriction
63+
. $GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['category']['config']['foreign_table_where'];
64+
$GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['categories']['config']['foreign_table_where'] = $categoryRestriction
65+
. $GLOBALS['TCA']['tx_cartevents_domain_model_event']['columns']['categories']['config']['foreign_table_where'];
6666
}
6767
}

Configuration/TCA/Overrides/tx_kesearch_indexerconfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
66

77
if (ExtensionManagementUtility::isLoaded('ke_search')) {
8-
$GLOBALS['TCA']['tx_kesearch_indexerconfig']['columns']['startingpoints_recursive']['displayCond'] .=
9-
',carteventsindexer,cartsingleeventindexer';
8+
$GLOBALS['TCA']['tx_kesearch_indexerconfig']['columns']['startingpoints_recursive']['displayCond']
9+
.= ',carteventsindexer,cartsingleeventindexer';
1010
}

ext_localconf.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,26 @@
7878

7979
// Cart Hooks
8080

81-
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cart']['CartEvents']['Form']['AddToCartFinisher'] =
82-
AddToCartFinisher::class;
81+
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cart']['CartEvents']['Form']['AddToCartFinisher']
82+
= AddToCartFinisher::class;
8383

8484
// processDatamapClass Hook
8585

86-
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['cartevents_allowed'] =
87-
DatamapDataHandlerHook::class;
86+
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['cartevents_allowed']
87+
= DatamapDataHandlerHook::class;
8888

8989
// clearCachePostProc Hook
9090

91-
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['cartevents_clearcache'] =
92-
DataHandler::class . '->clearCachePostProc';
91+
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['cartevents_clearcache']
92+
= DataHandler::class . '->clearCachePostProc';
9393

9494
// register "cartevents:" namespace
9595
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['cartevents'][]
9696
= 'Extcode\\CartEvents\\ViewHelpers';
9797

9898
// update wizard for slugs
99-
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['cartEventsSlugUpdater'] =
100-
SlugUpdater::class;
99+
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['cartEventsSlugUpdater']
100+
= SlugUpdater::class;
101101

102102
// translation overrides
103103

0 commit comments

Comments
 (0)