@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * AbstractUrl. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Service\Url; |
| 9 | 9 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | protected function getIndexBase($indexUid) |
| 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 | } |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * RealUrl. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Service\Url; |
| 9 | 9 | |
@@ -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; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | ) |
| 93 | 93 | ); |
| 94 | 94 | if (isset($row['value_id'])) { |
| 95 | - return (int) $row['value_id']; |
|
| 95 | + return (int)$row['value_id']; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | $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(); |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * BookingController. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Controller; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * BookingRequestValidator. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Validation\Validator; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * NewIncludeExcludeStructureUpdate. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Updates; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Create the needed database fields. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Slots; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * CalMigration. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Slots; |
| 9 | 9 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $db = HelperUtility::getDatabaseConnection(); |
| 34 | 34 | |
| 35 | - $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int) $event['uid']; |
|
| 35 | + $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int)$event['uid']; |
|
| 36 | 36 | $query = $db->SELECTquery('*', 'sys_file_reference', $selectWhere); |
| 37 | 37 | $selectResults = $db->admin_query($query); |
| 38 | 38 | $dbQueries[] = $query; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | foreach ($selectResults as $selectResult) { |
| 41 | 41 | $updateWhere = ' import_id = \'' . CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'] . '\''; |
| 42 | 42 | $fieldValues = [ |
| 43 | - 'uid_foreign' => (int) $recordId, |
|
| 43 | + 'uid_foreign' => (int)$recordId, |
|
| 44 | 44 | 'tablenames' => $table, |
| 45 | 45 | ]; |
| 46 | 46 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * BookingCountries. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Slots; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Event search service. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Slots; |
| 9 | 9 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'tablenames="tt_content" AND uid_foreign=' . $additionalSlotArguments['contentRecord']['uid'] |
| 107 | 107 | ); |
| 108 | 108 | foreach ($rows as $row) { |
| 109 | - $categoryIds[] = (int) $row['uid_local']; |
|
| 109 | + $categoryIds[] = (int)$row['uid_local']; |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | 'tablenames="' . $this->tableName . '" AND uid_local IN (' . \implode(',', $categoryIds) . ')' |
| 130 | 130 | ); |
| 131 | 131 | foreach ($rows as $row) { |
| 132 | - $indexIds[] = (int) $row['uid_foreign']; |
|
| 132 | + $indexIds[] = (int)$row['uid_foreign']; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | return [ |