@@ -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 | }; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | protected function findOutdatedEvents($tableName, $waitingPeriod):array |
| 147 | 147 | { |
| 148 | 148 | // calculate the waiting time |
| 149 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
| 149 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
| 150 | 150 | $now = DateTimeUtility::getNow(); |
| 151 | 151 | $now->sub(new \DateInterval($interval)); |
| 152 | 152 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | ->execute() |
| 170 | 170 | ->fetchAll(); |
| 171 | 171 | |
| 172 | - $foreignUids = array_map(function ($item) { |
|
| 172 | + $foreignUids = array_map(function($item) { |
|
| 173 | 173 | return (int)$item['foreign_uid']; |
| 174 | 174 | }, $foreignUids); |
| 175 | 175 | |