|
@@ -98,7 +98,7 @@ discard block |
|
|
block discarded – undo |
|
98
|
98
|
unset($GLOBALS['TCA']['tx_calendarize_domain_model_index']['ctrl']['languageField']); |
|
99
|
99
|
unset($GLOBALS['TCA']['tx_calendarize_domain_model_index']['ctrl']['transOrigPointerField']); |
|
100
|
100
|
|
|
101
|
|
- $result = $query->execute(); |
|
|
101
|
+ $result = $query->execute(); |
|
102
|
102
|
|
|
103
|
103
|
return $result; |
|
104
|
104
|
} |
|
@@ -379,7 +379,7 @@ discard block |
|
|
block discarded – undo |
|
379
|
379
|
*/ |
|
380
|
380
|
public function findWeek($year, $week, $weekStart = 1) |
|
381
|
381
|
{ |
|
382
|
|
- $weekStart = (int) $weekStart; |
|
|
382
|
+ $weekStart = (int)$weekStart; |
|
383
|
383
|
$daysShift = $weekStart - 1; |
|
384
|
384
|
$firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
|
385
|
385
|
$timezone = DateTimeUtility::getTimeZone(); |
|
@@ -402,7 +402,7 @@ discard block |
|
|
block discarded – undo |
|
402
|
402
|
public function findDifferentTypesAndLocations(): array |
|
403
|
403
|
{ |
|
404
|
404
|
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index'); |
|
405
|
|
- return (array) $queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
|
405
|
+ return (array)$queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
406
|
406
|
} |
|
407
|
407
|
|
|
408
|
408
|
/** |
|
@@ -495,7 +495,7 @@ discard block |
|
|
block discarded – undo |
|
495
|
495
|
$config = $objectManager->get(ConfigurationManagerInterface::class); |
|
496
|
496
|
$pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
|
497
|
497
|
|
|
498
|
|
- $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
|
498
|
+ $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
499
|
499
|
|
|
500
|
500
|
return $mode; |
|
501
|
501
|
} |