@@ -76,7 +76,7 @@ |
||
| 76 | 76 | ) { |
| 77 | 77 | $closure = $this->preventEvalNeverIdealStuff($eventRunner); |
| 78 | 78 | } else { |
| 79 | - $closure = function () use ($eventRunner) { |
|
| 79 | + $closure = function() use ($eventRunner) { |
|
| 80 | 80 | return call_user_func_array($eventRunner->getCallable(), func_get_args()); |
| 81 | 81 | }; |
| 82 | 82 | } |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | |
| 171 | 171 | $wrongNotificationClassNames = array_filter( |
| 172 | 172 | static::$supportedNotifications, |
| 173 | - function ($supportedNotification) { |
|
| 173 | + function($supportedNotification) { |
|
| 174 | 174 | return !(class_exists($supportedNotification) |
| 175 | 175 | || interface_exists($supportedNotification) |
| 176 | 176 | ) || !in_array(Notification::class, class_implements($supportedNotification)); |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | public function getTasksListForTca(array &$parameters) |
| 90 | 90 | { |
| 91 | 91 | $parameters['items'] = array_map( |
| 92 | - function ($task) { |
|
| 92 | + function($task) { |
|
| 93 | 93 | $uid = $task['uid']; |
| 94 | 94 | |
| 95 | 95 | /** @var AbstractTask $taskObject */ |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | protected function getDispatchCallback(Notification $notification, NotificationDefinition $notificationDefinition) |
| 82 | 82 | { |
| 83 | - return function (Event $event) use ($notification, $notificationDefinition) { |
|
| 83 | + return function(Event $event) use ($notification, $notificationDefinition) { |
|
| 84 | 84 | /** @var Payload $payload */ |
| 85 | 85 | $payload = GeneralUtility::makeInstance(Payload::class, $notification, $notificationDefinition, $event); |
| 86 | 86 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $lll = 'Notification/Log/Entity'; |
| 47 | 47 | |
| 48 | 48 | $levels = array_map( |
| 49 | - function ($level) use ($lll) { |
|
| 49 | + function($level) use ($lll) { |
|
| 50 | 50 | $level = strtoupper($level); |
| 51 | 51 | |
| 52 | 52 | $description = LocalizationService::localize("$lll:level.$level"); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $eventDefinition = $this->getSelectedEvent($parameters['row']); |
| 41 | 41 | |
| 42 | 42 | $eventRecipients = array_map( |
| 43 | - function (Email $recipient) { |
|
| 43 | + function(Email $recipient) { |
|
| 44 | 44 | return [ |
| 45 | 45 | 'label' => $recipient->getLabel(), |
| 46 | 46 | 'value' => $recipient->getName(), |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | $globalRecipients = array_map( |
| 53 | - function (Recipient $recipient) { |
|
| 53 | + function(Recipient $recipient) { |
|
| 54 | 54 | return [ |
| 55 | 55 | 'label' => $recipient->getName(), |
| 56 | 56 | 'value' => $recipient->getIdentifier(), |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | protected function parseRecipientsStrings(array $recipients) |
| 180 | 180 | { |
| 181 | 181 | return array_map( |
| 182 | - function ($recipient) { |
|
| 182 | + function($recipient) { |
|
| 183 | 183 | if (preg_match('#([^<]+) <([^>]+)>#', $recipient, $matches)) { |
| 184 | 184 | $name = $matches[1]; |
| 185 | 185 | $email = $matches[2]; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | return array_filter( |
| 266 | 266 | $recipients, |
| 267 | - function ($recipient) use ($uniqueRecipients) { |
|
| 267 | + function($recipient) use ($uniqueRecipients) { |
|
| 268 | 268 | $email = trim($recipient['email']); |
| 269 | 269 | |
| 270 | 270 | if (strlen($email) === 0) { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | : []; |
| 51 | 51 | |
| 52 | 52 | $data = array_map( |
| 53 | - function ($item) { |
|
| 53 | + function($item) { |
|
| 54 | 54 | return ['recipient' => $item]; |
| 55 | 55 | }, |
| 56 | 56 | $data |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @label Event/TYPO3/CacheCleared:marker.cache_command |
| 28 | 28 | * @marker |
| 29 | - |
|
| 30 | 29 | * @var string |
| 31 | 30 | */ |
| 32 | 31 | protected $cacheCommand; |