@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function update(AccountRequest $accountRequest) |
| 311 | 311 | { |
| 312 | - $this->transactionAware(function () use ($accountRequest) { |
|
| 312 | + $this->transactionAware(function() use ($accountRequest) { |
|
| 313 | 313 | $accountRequest->changePermissions = AccountAclService::getShowPermission($this->context->getUserData(), $this->context->getUserProfile()); |
| 314 | 314 | |
| 315 | 315 | // Cambiar el grupo principal si el usuario es Admin |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | */ |
| 405 | 405 | public function editPassword(AccountRequest $accountRequest) |
| 406 | 406 | { |
| 407 | - $this->transactionAware(function () use ($accountRequest) { |
|
| 407 | + $this->transactionAware(function() use ($accountRequest) { |
|
| 408 | 408 | $this->addHistory($accountRequest->id); |
| 409 | 409 | |
| 410 | 410 | $pass = $this->getPasswordEncrypted($accountRequest->pass); |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | */ |
| 439 | 439 | public function editRestore($historyId, $accountId) |
| 440 | 440 | { |
| 441 | - $this->transactionAware(function () use ($historyId, $accountId) { |
|
| 441 | + $this->transactionAware(function() use ($historyId, $accountId) { |
|
| 442 | 442 | $this->addHistory($accountId); |
| 443 | 443 | |
| 444 | 444 | if (!$this->accountRepository->editRestore($historyId, $this->context->getUserData()->getId())) { |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | */ |
| 456 | 456 | public function delete($id) |
| 457 | 457 | { |
| 458 | - $this->transactionAware(function () use ($id) { |
|
| 458 | + $this->transactionAware(function() use ($id) { |
|
| 459 | 459 | $this->addHistory($id, 1); |
| 460 | 460 | |
| 461 | 461 | if ($this->accountRepository->delete($id) === 0) { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $gridData = new DataGridData(); |
| 118 | 118 | $gridData->setDataRowSourceId('id'); |
| 119 | 119 | $gridData->addDataRowSource('name'); |
| 120 | - $gridData->addDataRowSource('moduleId', false, function ($value) { |
|
| 120 | + $gridData->addDataRowSource('moduleId', false, function($value) { |
|
| 121 | 121 | return CustomFieldDefService::getFieldModuleById($value); |
| 122 | 122 | }); |
| 123 | 123 | $gridData->addDataRowSource('typeName'); |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $gridData = new DataGridData(); |
| 134 | 134 | $gridData->setDataRowSourceId('id'); |
| 135 | 135 | $gridData->addDataRowSource('date', false, |
| 136 | - function ($value) { |
|
| 136 | + function($value) { |
|
| 137 | 137 | return DateUtil::getDateFromUnix($value); |
| 138 | 138 | }); |
| 139 | 139 | $gridData->addDataRowSource('type'); |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $gridData->addDataRowSource('clientName'); |
| 121 | 121 | $gridData->addDataRowSource('name'); |
| 122 | 122 | $gridData->addDataRowSource('type'); |
| 123 | - $gridData->addDataRowSource('size', false, function ($value) { |
|
| 123 | + $gridData->addDataRowSource('size', false, function($value) { |
|
| 124 | 124 | return sprintf('%.2f KB', $value / 1000); |
| 125 | 125 | }); |
| 126 | 126 | $gridData->setData($this->queryResult); |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $gridData = new DataGridData(); |
| 118 | 118 | $gridData->setDataRowSourceId('id'); |
| 119 | 119 | $gridData->addDataRowSource('userLogin'); |
| 120 | - $gridData->addDataRowSource('actionId', false, function ($value) { |
|
| 120 | + $gridData->addDataRowSource('actionId', false, function($value) { |
|
| 121 | 121 | return Acl::getActionInfo($value); |
| 122 | 122 | }); |
| 123 | 123 | $gridData->setData($this->queryResult); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | $gridData->setDataRowSourceId('id'); |
| 117 | 117 | $gridData->addDataRowSource('name'); |
| 118 | 118 | $gridData->addDataRowSource('description'); |
| 119 | - $gridData->addDataRowSource('isGlobal', false, function ($value) { |
|
| 119 | + $gridData->addDataRowSource('isGlobal', false, function($value) { |
|
| 120 | 120 | return $value ? __('SI') : __('NO'); |
| 121 | 121 | }); |
| 122 | 122 | $gridData->setData($this->queryResult); |
@@ -125,11 +125,11 @@ |
||
| 125 | 125 | $gridData->addDataRowSource('action'); |
| 126 | 126 | $gridData->addDataRowSource('login'); |
| 127 | 127 | $gridData->addDataRowSource('ipAddress', false, |
| 128 | - function ($value) use ($isDemoMode) { |
|
| 128 | + function($value) use ($isDemoMode) { |
|
| 129 | 129 | return $isDemoMode ? preg_replace('#\d+#', '*', $value) : $value; |
| 130 | 130 | }); |
| 131 | 131 | $gridData->addDataRowSource('description', false, |
| 132 | - function ($value) use ($isDemoMode) { |
|
| 132 | + function($value) use ($isDemoMode) { |
|
| 133 | 133 | if ($isDemoMode) { |
| 134 | 134 | $value = preg_replace('/\\d+\\.\\d+\\.\\d+\\.\\d+/', "*.*.*.*", $value); |
| 135 | 135 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function setFields(array $fields, array $values) |
| 66 | 66 | { |
| 67 | - $this->fields = array_map(function ($value) { |
|
| 67 | + $this->fields = array_map(function($value) { |
|
| 68 | 68 | return strpos($value, '=') === false ? "$value = ?" : $value; |
| 69 | 69 | }, $fields); |
| 70 | 70 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $configData->setMailSecurity($mailSecurity); |
| 77 | 77 | $configData->setMailFrom($mailFrom); |
| 78 | 78 | $configData->setMailRecipients($mailRecipients); |
| 79 | - $configData->setMailEvents($this->request->analyzeArray('mail_events', function ($items) { |
|
| 79 | + $configData->setMailEvents($this->request->analyzeArray('mail_events', function($items) { |
|
| 80 | 80 | return ConfigUtil::eventsAdapter($items); |
| 81 | 81 | })); |
| 82 | 82 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Sin cambios')); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 105 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 106 | 106 | $this->eventDispatcher->notifyEvent('save.config.mail', new Event($this, $eventMessage)); |
| 107 | 107 | }); |
| 108 | 108 | } |