@@ -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 |
@@ -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; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | */ |
108 | 108 | public function resetParams() |
109 | 109 | { |
110 | - $this->params = array_filter($this->params, function ($key) { |
|
110 | + $this->params = array_filter($this->params, function($key) { |
|
111 | 111 | return strpos($key, '_') === 0; |
112 | 112 | }, ARRAY_FILTER_USE_KEY); |
113 | 113 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | preg_match_all('/(?:for=([\w.:]+))|(?:for="\[([\w.:]+)\]")/i', |
169 | 169 | $forwarded, $matches) |
170 | 170 | ) { |
171 | - return array_filter(array_merge($matches[1], $matches[2]), function ($value) { |
|
171 | + return array_filter(array_merge($matches[1], $matches[2]), function($value) { |
|
172 | 172 | return !empty($value); |
173 | 173 | }); |
174 | 174 | } |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | return $mapper($requestValue); |
283 | 283 | } |
284 | 284 | |
285 | - return array_map(function ($value) { |
|
285 | + return array_map(function($value) { |
|
286 | 286 | return is_numeric($value) ? Filter::getInt($value) : Filter::getString($value); |
287 | 287 | }, $requestValue); |
288 | 288 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public static function filesExtsAdapter($filesAllowedExts) |
45 | 45 | { |
46 | - return array_map(function ($value) { |
|
46 | + return array_map(function($value) { |
|
47 | 47 | if (preg_match('/[^a-z0-9_-]+/i', $value)) { |
48 | 48 | return null; |
49 | 49 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function mailAddressesAdapter($mailAddresses) |
63 | 63 | { |
64 | - return array_filter(explode(',', $mailAddresses), function ($value) { |
|
64 | + return array_filter(explode(',', $mailAddresses), function($value) { |
|
65 | 65 | return filter_var($value, FILTER_VALIDATE_EMAIL); |
66 | 66 | }); |
67 | 67 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public static function eventsAdapter(array $events) |
77 | 77 | { |
78 | - return array_filter($events, function ($value) { |
|
78 | + return array_filter($events, function($value) { |
|
79 | 79 | return preg_match('/^[a-z][a-z\.]+$/i', $value); |
80 | 80 | }); |
81 | 81 | } |