@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | ]); |
113 | 113 | } |
114 | 114 | |
115 | - if ((int) $options->getPid() > 0) { |
|
116 | - $query->matching($query->equals('pid', (int) $options->getPid())); |
|
115 | + if ((int)$options->getPid() > 0) { |
|
116 | + $query->matching($query->equals('pid', (int)$options->getPid())); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | $result = $query->execute(); |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | */ |
398 | 398 | public function findWeek($year, $week, $weekStart = 1) |
399 | 399 | { |
400 | - $weekStart = (int) $weekStart; |
|
400 | + $weekStart = (int)$weekStart; |
|
401 | 401 | $daysShift = $weekStart - 1; |
402 | 402 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
403 | 403 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | { |
422 | 422 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index'); |
423 | 423 | |
424 | - 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(); |
|
424 | + 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 | 425 | } |
426 | 426 | |
427 | 427 | /** |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | $config = $objectManager->get(ConfigurationManagerInterface::class); |
515 | 515 | $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
516 | 516 | |
517 | - $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
517 | + $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
518 | 518 | |
519 | 519 | return $mode; |
520 | 520 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | public function generate(string $content, array $configuration) |
24 | 24 | { |
25 | 25 | $arguments = GeneralUtility::_GET('tx_calendarize_calendar'); |
26 | - $indexUid = isset($arguments['index']) ? (int) $arguments['index'] : 0; |
|
26 | + $indexUid = isset($arguments['index']) ? (int)$arguments['index'] : 0; |
|
27 | 27 | if (0 === $indexUid) { |
28 | 28 | return $content; |
29 | 29 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $event = $this->getEventByIndex($index); |
37 | 37 | $contentObjectRenderer = GeneralUtility::makeInstance(ContentObjectRenderer::class); |
38 | 38 | |
39 | - if (isset($configuration['doNotLinkIt']) && (bool) $configuration['doNotLinkIt']) { |
|
39 | + if (isset($configuration['doNotLinkIt']) && (bool)$configuration['doNotLinkIt']) { |
|
40 | 40 | $content = $event['title']; |
41 | 41 | } else { |
42 | 42 | $linkConfiguration = [ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function getEventByIndex($row) |
58 | 58 | { |
59 | - return $this->fetchRecordByUid($row['foreign_table'], (int) $row['foreign_uid']); |
|
59 | + return $this->fetchRecordByUid($row['foreign_table'], (int)$row['foreign_uid']); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table); |
81 | 81 | $where = [ |
82 | - $queryBuilder->expr()->eq('uid', (int) $uid), |
|
82 | + $queryBuilder->expr()->eq('uid', (int)$uid), |
|
83 | 83 | ]; |
84 | 84 | $rows = $queryBuilder->select('*') |
85 | 85 | ->from($table) |
@@ -67,7 +67,7 @@ |
||
67 | 67 | { |
68 | 68 | try { |
69 | 69 | $info = $GLOBALS['BE_USER']->getSessionData('calendarize_be'); |
70 | - $object = @\unserialize((string) $info); |
|
70 | + $object = @\unserialize((string)$info); |
|
71 | 71 | if ($object instanceof OptionRequest) { |
72 | 72 | return $object; |
73 | 73 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $configuration = $this->getConfiguration($pid, $event['start'], $event['end']); |
62 | 62 | $eventObject->addCalendarize($configuration); |
63 | 63 | |
64 | - if (null !== $eventObject->getUid() && (int) $eventObject->getUid() > 0) { |
|
64 | + if (null !== $eventObject->getUid() && (int)$eventObject->getUid() > 0) { |
|
65 | 65 | $this->eventRepository->update($eventObject); |
66 | 66 | $commandController->enqueueMessage('Update Event Meta data: ' . $eventObject->getTitle(), 'Update'); |
67 | 67 | } else { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | protected function nl2br($string) |
151 | 151 | { |
152 | - $string = \nl2br((string) $string); |
|
152 | + $string = \nl2br((string)$string); |
|
153 | 153 | |
154 | 154 | return \str_replace('\\n', '<br />', $string); |
155 | 155 | } |