@@ -56,7 +56,7 @@ |
||
| 56 | 56 | { |
| 57 | 57 | return implode( |
| 58 | 58 | $this->delimiter, |
| 59 | - array_map(function ($value) use ($translate) { |
|
| 59 | + array_map(function($value) use ($translate) { |
|
| 60 | 60 | return sprintf( |
| 61 | 61 | '%s: %s', |
| 62 | 62 | $translate ? __($value[0]) : $value[0] |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | return $this->saveConfig( |
| 109 | 109 | $configData, |
| 110 | 110 | $this->config, |
| 111 | - function () use ($eventMessage) { |
|
| 111 | + function() use ($eventMessage) { |
|
| 112 | 112 | $this->eventDispatcher->notifyEvent( |
| 113 | 113 | 'save.config.account', |
| 114 | 114 | new Event($this, $eventMessage) |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | return implode( |
| 81 | 81 | '', |
| 82 | - array_map(function ($attribute) use ($value) { |
|
| 82 | + array_map(function($attribute) use ($value) { |
|
| 83 | 83 | return sprintf('(%s=%s)', $attribute, $value); |
| 84 | 84 | }, $attributes) |
| 85 | 85 | ); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $configData->setMailSecurity($mailSecurity); |
| 83 | 83 | $configData->setMailFrom($mailFrom); |
| 84 | 84 | $configData->setMailRecipients($mailRecipients); |
| 85 | - $configData->setMailEvents($this->request->analyzeArray('mail_events', function ($items) { |
|
| 85 | + $configData->setMailEvents($this->request->analyzeArray('mail_events', function($items) { |
|
| 86 | 86 | return ConfigUtil::eventsAdapter($items); |
| 87 | 87 | }, [])); |
| 88 | 88 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | return $this->saveConfig( |
| 112 | 112 | $configData, |
| 113 | 113 | $this->config, |
| 114 | - function () use ($eventMessage) { |
|
| 114 | + function() use ($eventMessage) { |
|
| 115 | 115 | $this->eventDispatcher->notifyEvent( |
| 116 | 116 | 'save.config.mail', |
| 117 | 117 | new Event($this, $eventMessage) |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | $gridData->addDataRowSource('getDateAddFormat', true); |
| 130 | 130 | $gridData->addDataRowSource('getDateExpireFormat', true); |
| 131 | 131 | $gridData->addDataRowSource('userLogin'); |
| 132 | - $gridData->addDataRowSource('notify', false, function ($value) { |
|
| 132 | + $gridData->addDataRowSource('notify', false, function($value) { |
|
| 133 | 133 | return $value ? __('ON') : __('OFF'); |
| 134 | 134 | }); |
| 135 | 135 | $gridData->addDataRowSource('getCountViewsString', true); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $sysTmp = sys_get_temp_dir(); |
| 46 | 46 | $file = 'syspass.test'; |
| 47 | 47 | |
| 48 | - $checkDir = function ($dir) use ($file) { |
|
| 48 | + $checkDir = function($dir) use ($file) { |
|
| 49 | 49 | if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) { |
| 50 | 50 | return $dir; |
| 51 | 51 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | if ($srcClass !== null) { |
| 179 | 179 | $serialized = preg_replace_callback( |
| 180 | 180 | '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/', |
| 181 | - function ($matches) { |
|
| 181 | + function($matches) { |
|
| 182 | 182 | return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"'; |
| 183 | 183 | }, |
| 184 | 184 | $serialized); |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | */ |
| 289 | 289 | public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array |
| 290 | 290 | { |
| 291 | - return array_map(function ($value) { |
|
| 291 | + return array_map(function($value) { |
|
| 292 | 292 | return intval($value); |
| 293 | 293 | }, explode($delimiter, $itemsId)); |
| 294 | 294 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | return implode( |
| 46 | 46 | '', |
| 47 | - array_map(function ($value) use ($translate) { |
|
| 47 | + array_map(function($value) use ($translate) { |
|
| 48 | 48 | $right = $this->buildLink($value[1]); |
| 49 | 49 | $left = $translate ? __($value[0]) : $value[0]; |
| 50 | 50 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | return implode( |
| 87 | 87 | '', |
| 88 | - array_map(function ($value) use ($translate) { |
|
| 88 | + array_map(function($value) use ($translate) { |
|
| 89 | 89 | return '<div class="description-line">' . ($translate ? __($value) : $value) . '</div>'; |
| 90 | 90 | }, $text)); |
| 91 | 91 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | { |
| 195 | 195 | $mailMessage = $this->getMessageForEmail($key); |
| 196 | 196 | |
| 197 | - $emails = array_map(function ($value) { |
|
| 197 | + $emails = array_map(function($value) { |
|
| 198 | 198 | return $value->email; |
| 199 | 199 | }, $this->dic->get(UserService::class)->getUserEmailForGroup($groupId)); |
| 200 | 200 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | { |
| 214 | 214 | $mailMessage = $this->getMessageForEmail($key); |
| 215 | 215 | |
| 216 | - $emails = array_map(function ($value) { |
|
| 216 | + $emails = array_map(function($value) { |
|
| 217 | 217 | return $value->email; |
| 218 | 218 | }, $this->dic->get(UserService::class)->getUserEmailForAll()); |
| 219 | 219 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - $eventMessage = $this->processAccounts($this->accountService->getAccountsPassData(), function ($request) { |
|
| 82 | + $eventMessage = $this->processAccounts($this->accountService->getAccountsPassData(), function($request) { |
|
| 83 | 83 | $this->accountService->updatePasswordMasterPass($request); |
| 84 | 84 | }); |
| 85 | 85 | |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | ); |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - $eventMessage = $this->processAccounts($this->accountHistoryService->getAccountsPassData(), function ($request) { |
|
| 225 | + $eventMessage = $this->processAccounts($this->accountHistoryService->getAccountsPassData(), function($request) { |
|
| 226 | 226 | /** @var AccountPasswordRequest $request */ |
| 227 | 227 | $request->hash = $this->request->getHash(); |
| 228 | 228 | |