@@ -216,7 +216,7 @@ |
||
216 | 216 | return ''; |
217 | 217 | } |
218 | 218 | |
219 | - return implode(PHP_EOL, array_map(function ($detail) use ($translate) { |
|
219 | + return implode(PHP_EOL, array_map(function($detail) use ($translate) { |
|
220 | 220 | return $this->formatDetail($detail, $translate); |
221 | 221 | }, $this->details)); |
222 | 222 | } |
@@ -218,7 +218,7 @@ |
||
218 | 218 | |
219 | 219 | if (count($this->details) > 1) { |
220 | 220 | if ($translate === true) { |
221 | - return implode(PHP_EOL, array_map(function ($detail) use ($translate) { |
|
221 | + return implode(PHP_EOL, array_map(function($detail) use ($translate) { |
|
222 | 222 | return $this->formatDetail($detail, $translate); |
223 | 223 | }, $this->details)); |
224 | 224 | } |
@@ -150,7 +150,7 @@ |
||
150 | 150 | public function setRuntimeFilter($class, $method) |
151 | 151 | { |
152 | 152 | if (method_exists($class, $method)) { |
153 | - $this->_runtimeFilter = function ($filter) use ($method) { |
|
153 | + $this->_runtimeFilter = function($filter) use ($method) { |
|
154 | 154 | // new \ReflectionMethod($class, $method); |
155 | 155 | return $filter->{$method}(); |
156 | 156 | }; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public static function getArray(array $array): array |
64 | 64 | { |
65 | - return array_map(function ($value) { |
|
65 | + return array_map(function($value) { |
|
66 | 66 | if ($value !== null) { |
67 | 67 | if (is_numeric($value)) { |
68 | 68 | return Filter::getInt($value); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | $this->eventDispatcher->notifyEvent('send.mail', |
144 | 144 | new Event($this, EventMessage::factory() |
145 | 145 | ->addDescription(__u('Correo enviado')) |
146 | - ->addDetail(__u('Destinatario'), implode(',', array_map(function ($value) { |
|
146 | + ->addDetail(__u('Destinatario'), implode(',', array_map(function($value) { |
|
147 | 147 | return $value[0]; |
148 | 148 | }, $this->mailer->getToAddresses())))) |
149 | 149 | ); |
@@ -123,7 +123,7 @@ |
||
123 | 123 | try { |
124 | 124 | $this->request = $request; |
125 | 125 | |
126 | - $this->processUpdateMasterPassword(function (CustomFieldData $customFieldData) { |
|
126 | + $this->processUpdateMasterPassword(function(CustomFieldData $customFieldData) { |
|
127 | 127 | return Crypt::decrypt( |
128 | 128 | $customFieldData->getData(), |
129 | 129 | $customFieldData->getKey(), |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function delete($id) |
103 | 103 | { |
104 | - $this->transactionAware(function () use ($id) { |
|
104 | + $this->transactionAware(function() use ($id) { |
|
105 | 105 | $this->dic->get(CustomFieldService::class) |
106 | 106 | ->deleteCustomFieldDefinitionData($id); |
107 | 107 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function deleteByIdBatch(array $ids) |
124 | 124 | { |
125 | - $this->transactionAware(function () use ($ids) { |
|
125 | + $this->transactionAware(function() use ($ids) { |
|
126 | 126 | $this->dic->get(CustomFieldService::class) |
127 | 127 | ->deleteCustomFieldDefinitionDataBatch($ids); |
128 | 128 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function update(CustomFieldDefinitionData $itemData) |
154 | 154 | { |
155 | - return $this->transactionAware(function () use ($itemData) { |
|
155 | + return $this->transactionAware(function() use ($itemData) { |
|
156 | 156 | $customFieldDefinitionData = $this->getById($itemData->getId()); |
157 | 157 | |
158 | 158 | // Delete the data used by the items using the previous definition |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function create($itemData) |
125 | 125 | { |
126 | - return $this->transactionAware(function () use ($itemData) { |
|
126 | + return $this->transactionAware(function() use ($itemData) { |
|
127 | 127 | $id = $this->userGroupRepository->create($itemData); |
128 | 128 | |
129 | 129 | if (count($itemData->getUsers()) > 0) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function update($itemData) |
143 | 143 | { |
144 | - $this->transactionAware(function () use ($itemData) { |
|
144 | + $this->transactionAware(function() use ($itemData) { |
|
145 | 145 | $this->userGroupRepository->update($itemData); |
146 | 146 | |
147 | 147 | $this->userToUserGroupService->update($itemData->getId(), $itemData->getUsers()); |
@@ -193,7 +193,7 @@ |
||
193 | 193 | { |
194 | 194 | $mailMessage = $this->getMessageForEmail($key); |
195 | 195 | |
196 | - $emails = array_map(function ($value) { |
|
196 | + $emails = array_map(function($value) { |
|
197 | 197 | return $value->email; |
198 | 198 | }, $this->dic->get(UserService::class)->getUserEmailForGroup($groupId)); |
199 | 199 |