@@ -232,7 +232,7 @@ |
||
| 232 | 232 | */ |
| 233 | 233 | public function refreshAndUpdate(AuthTokenData $itemData) |
| 234 | 234 | { |
| 235 | - $this->transactionAware(function () use ($itemData) { |
|
| 235 | + $this->transactionAware(function() use ($itemData) { |
|
| 236 | 236 | $token = $this->generateToken(); |
| 237 | 237 | $vault = serialize($this->getSecureData($token, $itemData->getHash())); |
| 238 | 238 | |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | public function saveBatch(ConfigRequest $configRequest) |
| 99 | 99 | { |
| 100 | 100 | try { |
| 101 | - $this->transactionAware(function () use ($configRequest) { |
|
| 101 | + $this->transactionAware(function() use ($configRequest) { |
|
| 102 | 102 | foreach ($configRequest->getData() as $param => $value) { |
| 103 | 103 | $this->save($param, $value); |
| 104 | 104 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | TaskFactory::update($taskId, TaskFactory::createMessage($taskId, __u('Actualizar Clave Maestra'))); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $eventMessage = $this->processAccounts($this->accountService->getAccountsPassData(), function ($request) { |
|
| 80 | + $eventMessage = $this->processAccounts($this->accountService->getAccountsPassData(), function($request) { |
|
| 81 | 81 | $this->accountService->updatePasswordMasterPass($request); |
| 82 | 82 | }); |
| 83 | 83 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | TaskFactory::update($taskId, TaskFactory::createMessage($taskId, __u('Actualizar Clave Maestra (H)'))); |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - $eventMessage = $this->processAccounts($this->accountHistoryService->getAccountsPassData(), function ($request) { |
|
| 221 | + $eventMessage = $this->processAccounts($this->accountHistoryService->getAccountsPassData(), function($request) { |
|
| 222 | 222 | /** @var AccountPasswordRequest $request */ |
| 223 | 223 | $request->hash = $this->request->getHash(); |
| 224 | 224 | |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | */ |
| 281 | 281 | public function update(AccountRequest $accountRequest) |
| 282 | 282 | { |
| 283 | - $this->transactionAware(function () use ($accountRequest) { |
|
| 283 | + $this->transactionAware(function() use ($accountRequest) { |
|
| 284 | 284 | $accountRequest->changePermissions = AccountAclService::getShowPermission($this->context->getUserData(), $this->context->getUserProfile()); |
| 285 | 285 | |
| 286 | 286 | // Cambiar el grupo principal si el usuario es Admin |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | */ |
| 376 | 376 | public function editPassword(AccountRequest $accountRequest) |
| 377 | 377 | { |
| 378 | - $this->transactionAware(function () use ($accountRequest) { |
|
| 378 | + $this->transactionAware(function() use ($accountRequest) { |
|
| 379 | 379 | $this->addHistory($accountRequest->id); |
| 380 | 380 | |
| 381 | 381 | $pass = $this->getPasswordEncrypted($accountRequest->pass); |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | public function editRestore($historyId, $accountId) |
| 411 | 411 | { |
| 412 | - $this->transactionAware(function () use ($historyId, $accountId) { |
|
| 412 | + $this->transactionAware(function() use ($historyId, $accountId) { |
|
| 413 | 413 | $this->addHistory($accountId); |
| 414 | 414 | |
| 415 | 415 | if (!$this->accountRepository->editRestore($historyId, $this->context->getUserData()->getId())) { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | try { |
| 62 | - $this->transactionAware(function () { |
|
| 62 | + $this->transactionAware(function() { |
|
| 63 | 63 | $customFieldService = $this->dic->get(CustomFieldService::class); |
| 64 | 64 | |
| 65 | 65 | foreach ($customFieldService->getAll() as $item) { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ); |
| 62 | 62 | |
| 63 | 63 | try { |
| 64 | - $this->transactionAware(function () { |
|
| 64 | + $this->transactionAware(function() { |
|
| 65 | 65 | $customFieldDefService = $this->dic->get(CustomFieldDefService::class); |
| 66 | 66 | |
| 67 | 67 | $queryData = new QueryData(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | ); |
| 142 | 142 | |
| 143 | 143 | try { |
| 144 | - $this->transactionAware(function () { |
|
| 144 | + $this->transactionAware(function() { |
|
| 145 | 145 | $customFieldDefService = $this->dic->get(CustomFieldDefService::class); |
| 146 | 146 | |
| 147 | 147 | foreach ($customFieldDefService->getAllBasic() as $item) { |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | ); |
| 59 | 59 | |
| 60 | 60 | try { |
| 61 | - $this->transactionAware(function () { |
|
| 61 | + $this->transactionAware(function() { |
|
| 62 | 62 | $publicLinkService = $this->dic->get(PublicLinkService::class); |
| 63 | 63 | |
| 64 | 64 | $queryData = new QueryData(); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $message = EventMessage::factory(); |
| 78 | 78 | |
| 79 | 79 | if (isset($CONFIG) && is_array($CONFIG)) { |
| 80 | - $paramMapper = function ($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 80 | + $paramMapper = function($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 81 | 81 | if (isset($CONFIG[$mapFrom])) { |
| 82 | 82 | $message->addDetail(__u('Parámetro'), $mapFrom); |
| 83 | 83 | $configData->{$mapTo}($CONFIG[$mapFrom]); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | try { |
| 60 | - $this->transactionAware(function () { |
|
| 60 | + $this->transactionAware(function() { |
|
| 61 | 61 | foreach ($this->authtokenService->getAllBasic() as $item) { |
| 62 | 62 | |
| 63 | 63 | $itemData = clone $item; |