@@ -37,8 +37,8 @@ |
||
| 37 | 37 | * @signalName findBySearchPre |
| 38 | 38 | * |
| 39 | 39 | * @param array $indexIds |
| 40 | - * @param \DateTime|null $startDate |
|
| 41 | - * @param \DateTime|null $endDate |
|
| 40 | + * @param \DateTime $startDate |
|
| 41 | + * @param \DateTime $endDate |
|
| 42 | 42 | * @param array $customSearch |
| 43 | 43 | * @param bool $emptyPreResult |
| 44 | 44 | * @param array $additionalSlotArguments |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | WHERE tx_calendarize_domain_model_index.uid IS NULL AND tx_realurl_uniqalias.tablename=\'tx_calendarize_domain_model_index\''; |
| 65 | 65 | $res = $databaseConnection->admin_query($selectInvalidItems); |
| 66 | 66 | while ($row = $databaseConnection->sql_fetch_assoc($res)) { |
| 67 | - $removeIds[] = (int) $row['uid']; |
|
| 67 | + $removeIds[] = (int)$row['uid']; |
|
| 68 | 68 | } |
| 69 | 69 | if (empty($removeIds)) { |
| 70 | 70 | return; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | ) |
| 95 | 95 | ); |
| 96 | 96 | if (isset($row['value_id'])) { |
| 97 | - return (int) $row['value_id']; |
|
| 97 | + return (int)$row['value_id']; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $matches = []; |
@@ -120,13 +120,13 @@ discard block |
||
| 120 | 120 | 'tablename=' . $databaseConnection->fullQuoteStr( |
| 121 | 121 | IndexerService::TABLE_NAME, |
| 122 | 122 | IndexerService::TABLE_NAME |
| 123 | - ) . ' AND value_id=' . (int) $value |
|
| 123 | + ) . ' AND value_id=' . (int)$value |
|
| 124 | 124 | ); |
| 125 | 125 | if (isset($row['value_alias'])) { |
| 126 | 126 | return (string)$row['value_alias']; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - $alias = $this->getIndexBase((int) $value); |
|
| 129 | + $alias = $this->getIndexBase((int)$value); |
|
| 130 | 130 | $alias = $this->cleanUrl($alias); |
| 131 | 131 | |
| 132 | 132 | $databaseConnection = HelperUtility::getDatabaseConnection(); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | protected function getIndexBase($indexUid):string |
| 37 | 37 | { |
| 38 | 38 | $indexRepository = HelperUtility::create(IndexRepository::class); |
| 39 | - $index = $indexRepository->findByUid((int) $indexUid); |
|
| 39 | + $index = $indexRepository->findByUid((int)$indexUid); |
|
| 40 | 40 | if (!($index instanceof Index)) { |
| 41 | 41 | return 'idx-' . $indexUid; |
| 42 | 42 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | 46 | $handler = $this->buildConfigurationHandler($configuration); |
| 47 | - }catch(\Exception $exception){ |
|
| 47 | + } catch (\Exception $exception) { |
|
| 48 | 48 | HelperUtility::createFlashMessage( |
| 49 | 49 | $exception->getMessage(), |
| 50 | 50 | 'Index invalid', |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | /** @var \DateTime $base */ |
| 177 | 177 | $base = clone $record[$position . '_date']; |
| 178 | - if (\is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) { |
|
| 178 | + if (\is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) { |
|
| 179 | 179 | // Fix handling, if the time field contains a complete timestamp |
| 180 | 180 | $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY; |
| 181 | 181 | $base->setTime(0, 0, 0); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | 46 | $handler = $this->buildConfigurationHandler($configuration); |
| 47 | - }catch(\Exception $exception){ |
|
| 47 | + } catch(\Exception $exception){ |
|
| 48 | 48 | HelperUtility::createFlashMessage( |
| 49 | 49 | $exception->getMessage(), |
| 50 | 50 | 'Index invalid', |