@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $previewLimit = 10; |
| 34 | 34 | if (isset($configuration['fieldConf']['config']['items'])) { |
| 35 | - $previewLimit = (int) $configuration['fieldConf']['config']['items']; |
|
| 35 | + $previewLimit = (int)$configuration['fieldConf']['config']['items']; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $indexService = GeneralUtility::makeInstance(IndexerService::class); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $entry = $startDate . ' - ' . $endDate; |
| 82 | 82 | if (!$event['all_day']) { |
| 83 | 83 | $start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false); |
| 84 | - if ((int) $event['end_time'] === AbstractTimeTable::DAY_END) { |
|
| 84 | + if ((int)$event['end_time'] === AbstractTimeTable::DAY_END) { |
|
| 85 | 85 | $end = '"' . TranslateUtility::get('openEndTime') . '"'; |
| 86 | 86 | } else { |
| 87 | 87 | $end = BackendUtility::time($event['end_time'] % DateTimeUtility::SECONDS_DAY, false); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | if ($id === '' && $name === '') { |
| 33 | 33 | return ''; |
| 34 | 34 | } |
| 35 | - $times = $this->getTimes((int) $params['pid']); |
|
| 35 | + $times = $this->getTimes((int)$params['pid']); |
|
| 36 | 36 | if (!$times) { |
| 37 | 37 | return ''; |
| 38 | 38 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function respectPluginConfiguration(array $settings) |
| 21 | 21 | { |
| 22 | - $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int) $settings['pluginConfiguration']); |
|
| 22 | + $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int)$settings['pluginConfiguration']); |
|
| 23 | 23 | if ($settings['pluginConfiguration'] instanceof PluginConfiguration) { |
| 24 | 24 | $checkFields = [ |
| 25 | 25 | 'detailPid', |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | protected function buildPluginConfigurationObject($uid) |
| 60 | 60 | { |
| 61 | 61 | $db = HelperUtility::getDatabaseConnection(); |
| 62 | - $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int) $uid); |
|
| 62 | + $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int)$uid); |
|
| 63 | 63 | if (!isset($row['model_name'])) { |
| 64 | 64 | return null; |
| 65 | 65 | } |
@@ -68,11 +68,11 @@ discard block |
||
| 68 | 68 | if (!$languageField || !$transPointer) { |
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | - if ((int) $record[$transPointer] > 0) { |
|
| 71 | + if ((int)$record[$transPointer] > 0) { |
|
| 72 | 72 | // no Index for language child elements |
| 73 | 73 | return; |
| 74 | 74 | } |
| 75 | - $language = (int) $record[$languageField]; |
|
| 75 | + $language = (int)$record[$languageField]; |
|
| 76 | 76 | |
| 77 | 77 | foreach (array_keys($neededItems) as $key) { |
| 78 | 78 | $neededItems[$key]['sys_language_uid'] = $language; |
@@ -95,16 +95,16 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | $addFields = []; |
| 97 | 97 | if (isset($enableFields['disabled'])) { |
| 98 | - $addFields['hidden'] = (int) $record[$enableFields['disabled']]; |
|
| 98 | + $addFields['hidden'] = (int)$record[$enableFields['disabled']]; |
|
| 99 | 99 | } |
| 100 | 100 | if (isset($enableFields['starttime'])) { |
| 101 | - $addFields['starttime'] = (int) $record[$enableFields['starttime']]; |
|
| 101 | + $addFields['starttime'] = (int)$record[$enableFields['starttime']]; |
|
| 102 | 102 | } |
| 103 | 103 | if (isset($enableFields['endtime'])) { |
| 104 | - $addFields['endtime'] = (int) $record[$enableFields['endtime']]; |
|
| 104 | + $addFields['endtime'] = (int)$record[$enableFields['endtime']]; |
|
| 105 | 105 | } |
| 106 | 106 | if (isset($enableFields['fe_group'])) { |
| 107 | - $addFields['fe_group'] = (string) $record[$enableFields['fe_group']]; |
|
| 107 | + $addFields['fe_group'] = (string)$record[$enableFields['fe_group']]; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | foreach ($neededItems as $key => $value) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | if ($value instanceof \DateTimeInterface) { |
| 124 | 124 | $record[$key] = $value->getTimestamp(); |
| 125 | 125 | } elseif (is_bool($value) || $key === 'start_time' || $key === 'end_time') { |
| 126 | - $record[$key] = (int) $value; |
|
| 126 | + $record[$key] = (int)$value; |
|
| 127 | 127 | } elseif ($value === null) { |
| 128 | 128 | $record[$key] = ''; |
| 129 | 129 | } |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | } |
| 120 | 120 | /** @var \DateTime $base */ |
| 121 | 121 | $base = clone $record[$position . '_date']; |
| 122 | - if (is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) { |
|
| 122 | + if (is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) { |
|
| 123 | 123 | // Fix handling, if the time field contains a complete timestamp |
| 124 | 124 | $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY; |
| 125 | 125 | $base->setTime(0, 0, 0); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | return $databaseConnection->exec_SELECTcountRows( |
| 70 | 70 | '*', |
| 71 | 71 | self::TABLE_NAME, |
| 72 | - 'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int) $uid |
|
| 72 | + 'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int)$uid |
|
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | 'start_date >= ' . $now->getTimestamp() . ' AND foreign_table=' . $databaseConnection->fullQuoteStr( |
| 95 | 95 | $table, |
| 96 | 96 | self::TABLE_NAME |
| 97 | - ) . ' AND foreign_uid=' . (int) $uid, |
|
| 97 | + ) . ' AND foreign_uid=' . (int)$uid, |
|
| 98 | 98 | '', |
| 99 | 99 | 'start_date ASC, start_time ASC', |
| 100 | 100 | $limit |
@@ -176,11 +176,11 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | foreach ($neededItem as $key => $value) { |
| 178 | 178 | if (MathUtility::canBeInterpretedAsInteger($value)) { |
| 179 | - if ((int) $value !== (int) $currentItem[$key]) { |
|
| 179 | + if ((int)$value !== (int)$currentItem[$key]) { |
|
| 180 | 180 | return false; |
| 181 | 181 | } |
| 182 | 182 | } else { |
| 183 | - if ((string) $value !== (string) $currentItem[$key]) { |
|
| 183 | + if ((string)$value !== (string)$currentItem[$key]) { |
|
| 184 | 184 | return false; |
| 185 | 185 | } |
| 186 | 186 | } |
@@ -224,12 +224,12 @@ discard block |
||
| 224 | 224 | $validKeys[$key] = $databaseConnection->fullQuoteStr($value, self::TABLE_NAME); |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | - return (bool) $databaseConnection->exec_DELETEquery( |
|
| 227 | + return (bool)$databaseConnection->exec_DELETEquery( |
|
| 228 | 228 | self::TABLE_NAME, |
| 229 | 229 | 'unique_register_key NOT IN (' . implode(',', $validKeys) . ')' |
| 230 | 230 | ); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - return (bool) $databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME); |
|
| 233 | + return (bool)$databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME); |
|
| 234 | 234 | } |
| 235 | 235 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | protected function getIndexBase($indexUid) |
| 35 | 35 | { |
| 36 | 36 | $indexRepository = HelperUtility::create(IndexRepository::class); |
| 37 | - $index = $indexRepository->findByUid((int) $indexUid); |
|
| 37 | + $index = $indexRepository->findByUid((int)$indexUid); |
|
| 38 | 38 | if (!($index instanceof Index)) { |
| 39 | 39 | return 'idx-' . $indexUid; |
| 40 | 40 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | WHERE tx_calendarize_domain_model_index.uid IS NULL AND tx_realurl_uniqalias.tablename=\'tx_calendarize_domain_model_index\''; |
| 63 | 63 | $res = $databaseConnection->admin_query($selectInvalidItems); |
| 64 | 64 | while ($row = $databaseConnection->sql_fetch_assoc($res)) { |
| 65 | - $removeIds[] = (int) $row['uid']; |
|
| 65 | + $removeIds[] = (int)$row['uid']; |
|
| 66 | 66 | } |
| 67 | 67 | if (empty($removeIds)) { |
| 68 | 68 | return; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | ) |
| 91 | 91 | ); |
| 92 | 92 | if (isset($row['value_id'])) { |
| 93 | - return (int) $row['value_id']; |
|
| 93 | + return (int)$row['value_id']; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $matches = []; |
@@ -117,13 +117,13 @@ discard block |
||
| 117 | 117 | 'tablename=' . $databaseConnection->fullQuoteStr( |
| 118 | 118 | IndexerService::TABLE_NAME, |
| 119 | 119 | IndexerService::TABLE_NAME |
| 120 | - ) . ' AND value_id=' . (int) $value |
|
| 120 | + ) . ' AND value_id=' . (int)$value |
|
| 121 | 121 | ); |
| 122 | 122 | if (isset($row['value_alias'])) { |
| 123 | 123 | return $row['value_alias']; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - $alias = $this->getIndexBase((int) $value); |
|
| 126 | + $alias = $this->getIndexBase((int)$value); |
|
| 127 | 127 | $alias = $this->cleanUrl($alias); |
| 128 | 128 | |
| 129 | 129 | $databaseConnection = HelperUtility::getDatabaseConnection(); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function coolUri($xml, $value) |
| 59 | 59 | { |
| 60 | - $alias = $this->getIndexBase((int) $value); |
|
| 60 | + $alias = $this->getIndexBase((int)$value); |
|
| 61 | 61 | $alias = Functions::URLize($alias); |
| 62 | 62 | $alias = Functions::sanitize_title_with_dashes($alias); |
| 63 | 63 | |