@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'tablenames="tt_content" AND uid_foreign=' . $additionalSlotArguments['contentRecord']['uid'] |
102 | 102 | ); |
103 | 103 | foreach ($rows as $row) { |
104 | - $categoryIds[] = (int) $row['uid_local']; |
|
104 | + $categoryIds[] = (int)$row['uid_local']; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'tablenames="' . $this->tableName . '" AND uid_local IN (' . implode(',', $categoryIds) . ')' |
125 | 125 | ); |
126 | 126 | foreach ($rows as $row) { |
127 | - $indexIds[] = (int) $row['uid_foreign']; |
|
127 | + $indexIds[] = (int)$row['uid_foreign']; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return [ |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $db = HelperUtility::getDatabaseConnection(); |
32 | 32 | |
33 | - $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int) $event['uid']; |
|
33 | + $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int)$event['uid']; |
|
34 | 34 | $query = $db->SELECTquery('*', 'sys_file_reference', $selectWhere); |
35 | 35 | $selectResults = $db->admin_query($query); |
36 | 36 | $dbQueries[] = $query; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | foreach ($selectResults as $selectResult) { |
39 | 39 | $updateWhere = ' import_id = \'' . CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'] . '\''; |
40 | 40 | $fieldValues = [ |
41 | - 'uid_foreign' => (int) $recordId, |
|
41 | + 'uid_foreign' => (int)$recordId, |
|
42 | 42 | 'tablenames' => $table, |
43 | 43 | ]; |
44 | 44 |
@@ -136,7 +136,7 @@ |
||
136 | 136 | */ |
137 | 137 | protected function nl2br($string) |
138 | 138 | { |
139 | - $string = nl2br((string) $string); |
|
139 | + $string = nl2br((string)$string); |
|
140 | 140 | |
141 | 141 | return str_replace('\\n', '<br />', $string); |
142 | 142 | } |
@@ -116,6 +116,6 @@ |
||
116 | 116 | )); |
117 | 117 | } |
118 | 118 | |
119 | - return (array) (new \ICal($absoluteIcalFile))->events(); |
|
119 | + return (array)(new \ICal($absoluteIcalFile))->events(); |
|
120 | 120 | } |
121 | 121 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | // climb thru the events and hide/delete them |
69 | 69 | foreach ($events as $event) { |
70 | - $uid = (int) $event['foreign_uid']; |
|
70 | + $uid = (int)$event['foreign_uid']; |
|
71 | 71 | |
72 | 72 | $model = $repository->findByUid($uid); |
73 | 73 | |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
101 | 101 | { |
102 | 102 | // define the function for the delete-modus. |
103 | - $delete = function ($repository, $model) { |
|
103 | + $delete = function($repository, $model) { |
|
104 | 104 | $repository->remove($model); |
105 | 105 | }; |
106 | 106 | |
107 | 107 | // define the function for the hide-modus. |
108 | - $hide = function ($repository, $model) { |
|
108 | + $hide = function($repository, $model) { |
|
109 | 109 | $model->setHidden(true); |
110 | 110 | $repository->update($model); |
111 | 111 | }; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | protected function findOutdatedEvents($tableName, $waitingPeriod) |
142 | 142 | { |
143 | 143 | // calculate the waiting time |
144 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
144 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
145 | 145 | $now = DateTimeUtility::getNow(); |
146 | 146 | $now->sub(new \DateInterval($interval)); |
147 | 147 |