@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | // climb thru the events and hide/delete them |
73 | 73 | foreach ($events as $event) { |
74 | - $uid = (int) $event['foreign_uid']; |
|
74 | + $uid = (int)$event['foreign_uid']; |
|
75 | 75 | |
76 | 76 | $model = $repository->findByUid($uid); |
77 | 77 | |
@@ -104,12 +104,12 @@ discard block |
||
104 | 104 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
105 | 105 | { |
106 | 106 | // define the function for the delete-modus. |
107 | - $delete = function ($repository, $model) { |
|
107 | + $delete = function($repository, $model) { |
|
108 | 108 | $repository->remove($model); |
109 | 109 | }; |
110 | 110 | |
111 | 111 | // define the function for the hide-modus. |
112 | - $hide = function ($repository, $model) { |
|
112 | + $hide = function($repository, $model) { |
|
113 | 113 | $model->setHidden(true); |
114 | 114 | $repository->update($model); |
115 | 115 | }; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | protected function findOutdatedEvents($tableName, $waitingPeriod): array |
148 | 148 | { |
149 | 149 | // calculate the waiting time |
150 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
150 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
151 | 151 | $now = DateTimeUtility::getNow(); |
152 | 152 | $now->sub(new \DateInterval($interval)); |
153 | 153 | |
@@ -169,8 +169,8 @@ discard block |
||
169 | 169 | ->execute() |
170 | 170 | ->fetchAll(); |
171 | 171 | |
172 | - $foreignUids = \array_map(function ($item) { |
|
173 | - return (int) $item['foreign_uid']; |
|
172 | + $foreignUids = \array_map(function($item) { |
|
173 | + return (int)$item['foreign_uid']; |
|
174 | 174 | }, $foreignUids); |
175 | 175 | |
176 | 176 | $q->select('foreign_uid') |