@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | ]); |
114 | 114 | } |
115 | 115 | |
116 | - if ((int) $options->getPid() > 0) { |
|
117 | - $query->matching($query->equals('pid', (int) $options->getPid())); |
|
116 | + if ((int)$options->getPid() > 0) { |
|
117 | + $query->matching($query->equals('pid', (int)$options->getPid())); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | $result = $query->execute(); |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | */ |
399 | 399 | public function findWeek($year, $week, $weekStart = 1) |
400 | 400 | { |
401 | - $weekStart = (int) $weekStart; |
|
401 | + $weekStart = (int)$weekStart; |
|
402 | 402 | $daysShift = $weekStart - 1; |
403 | 403 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
404 | 404 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | { |
423 | 423 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index'); |
424 | 424 | |
425 | - 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(); |
|
425 | + 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(); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | $config = $objectManager->get(ConfigurationManagerInterface::class); |
516 | 516 | $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
517 | 517 | |
518 | - $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
518 | + $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
519 | 519 | |
520 | 520 | return $mode; |
521 | 521 | } |
@@ -633,12 +633,12 @@ discard block |
||
633 | 633 | $timezone = new \DateTimeZone('UTC'); |
634 | 634 | |
635 | 635 | // store values for start_date and start_time in separate variables |
636 | - $startDateTime = new \DateTime('@'.$arguments['startTime'], $timezone); |
|
636 | + $startDateTime = new \DateTime('@' . $arguments['startTime'], $timezone); |
|
637 | 637 | $restrictionLowTime = DateTimeUtility::getDaySecondsOfDateTime($startDateTime); |
638 | 638 | $restrictionLowDay = DateTimeUtility::resetTime($startDateTime)->getTimestamp(); |
639 | 639 | |
640 | 640 | // store values for end_date and end_time in separate variables |
641 | - $endDateTime = new \DateTime('@'.$arguments['endTime'], $timezone); |
|
641 | + $endDateTime = new \DateTime('@' . $arguments['endTime'], $timezone); |
|
642 | 642 | $restrictionHighTime = DateTimeUtility::getDaySecondsOfDateTime($endDateTime); |
643 | 643 | $restrictionHighDay = DateTimeUtility::resetTime($endDateTime)->getTimestamp(); |
644 | 644 |