@@ -137,12 +137,12 @@ discard block |
||
| 137 | 137 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
| 138 | 138 | { |
| 139 | 139 | // define the function for the delete-modus. |
| 140 | - $delete = function ($repository, $model) { |
|
| 140 | + $delete = function($repository, $model) { |
|
| 141 | 141 | $repository->remove($model); |
| 142 | 142 | }; |
| 143 | 143 | |
| 144 | 144 | // define the function for the hide-modus. |
| 145 | - $hide = function ($repository, $model) { |
|
| 145 | + $hide = function($repository, $model) { |
|
| 146 | 146 | $model->setHidden(true); |
| 147 | 147 | $repository->update($model); |
| 148 | 148 | }; |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | ->execute() |
| 205 | 205 | ->fetchAll(); |
| 206 | 206 | |
| 207 | - $foreignUids = array_map(function ($item) { |
|
| 207 | + $foreignUids = array_map(function($item) { |
|
| 208 | 208 | return (int)$item['foreign_uid']; |
| 209 | 209 | }, $foreignUids); |
| 210 | 210 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
| 67 | 67 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
| 68 | - $parts = array_map(function ($element) { |
|
| 68 | + $parts = array_map(function($element) { |
|
| 69 | 69 | $split = explode('->', $element); |
| 70 | 70 | |
| 71 | 71 | return ucfirst($split[1]); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | $date = $arguments['date']; |
| 35 | 35 | if ($date instanceof \DateTimeInterface) { |
| 36 | - $renderChildrenClosure = function () use ($date) { |
|
| 36 | + $renderChildrenClosure = function() use ($date) { |
|
| 37 | 37 | // Convert date to timestamp, so that it can be reparsed. |
| 38 | 38 | return $date->getTimestamp(); |
| 39 | 39 | }; |