@@ -123,11 +123,11 @@ |
||
| 123 | 123 | $gridData->addDataRowSource('action', null, null, false); |
| 124 | 124 | $gridData->addDataRowSource('login'); |
| 125 | 125 | $gridData->addDataRowSource('ipAddress', false, |
| 126 | - function ($value) use ($isDemoMode) { |
|
| 126 | + function($value) use ($isDemoMode) { |
|
| 127 | 127 | return $isDemoMode ? '*.*.*.*' : $value; |
| 128 | 128 | }); |
| 129 | 129 | $gridData->addDataRowSource('description', false, |
| 130 | - function ($value) use ($isDemoMode) { |
|
| 130 | + function($value) use ($isDemoMode) { |
|
| 131 | 131 | if ($isDemoMode) { |
| 132 | 132 | $value = preg_replace('/\d+\.\d+\.\d+\.\d+/', '*.*.*.*', $value); |
| 133 | 133 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | public function checkDatabaseTables($dbName) |
| 89 | 89 | { |
| 90 | 90 | try { |
| 91 | - $tables = implode(',', array_map(function ($value) { |
|
| 91 | + $tables = implode(',', array_map(function($value) { |
|
| 92 | 92 | return '\'' . $value . '\''; |
| 93 | 93 | }, self::$tables)); |
| 94 | 94 | |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | $sk = $this->vars->get('sk'); |
| 361 | 361 | |
| 362 | 362 | // An anonymous proxy function for handling views variables |
| 363 | - $_getvar = function ($key, $default = null) { |
|
| 363 | + $_getvar = function($key, $default = null) { |
|
| 364 | 364 | if (DEBUG && !$this->vars->exists($key)) { |
| 365 | 365 | logger(sprintf(__('Unable to retrieve "%s" variable'), $key), 'WARN'); |
| 366 | 366 | |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | return $this->vars->get($key, $default); |
| 371 | 371 | }; |
| 372 | 372 | |
| 373 | - $_getRoute = function ($path) use ($sk) { |
|
| 373 | + $_getRoute = function($path) use ($sk) { |
|
| 374 | 374 | return Bootstrap::$WEBURI . '/index.php?r=' . $path . '&sk=' . $sk; |
| 375 | 375 | }; |
| 376 | 376 | |
@@ -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('Parameter'), $mapFrom); |
| 83 | 83 | $configData->{$mapTo}($CONFIG[$mapFrom]); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | TaskFactory::update($taskId, TaskFactory::createMessage($taskId, __u('Update Master Password'))); |
| 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('Update Master Password (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 | |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $this->eventDispatcher->notifyEvent('send.mail', |
| 140 | 140 | new Event($this, EventMessage::factory() |
| 141 | 141 | ->addDescription(__u('Email sent')) |
| 142 | - ->addDetail(__u('Recipient'), implode(',', array_map(function ($value) { |
|
| 142 | + ->addDetail(__u('Recipient'), implode(',', array_map(function($value) { |
|
| 143 | 143 | return $value[0]; |
| 144 | 144 | }, $this->mailer->getToAddresses())))) |
| 145 | 145 | ); |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $gridData->setDataRowSourceId('id'); |
| 120 | 120 | $gridData->addDataRowSource('name'); |
| 121 | 121 | $gridData->addDataRowSource('description'); |
| 122 | - $gridData->addDataRowSource('isGlobal', false, function ($value) { |
|
| 122 | + $gridData->addDataRowSource('isGlobal', false, function($value) { |
|
| 123 | 123 | return $value ? __('YES') : __('NO'); |
| 124 | 124 | }); |
| 125 | 125 | $gridData->setData($this->queryResult); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | AccountSearchItem::$showTags = $userPreferences->isShowAccountSearchFilters(); |
| 140 | 140 | |
| 141 | 141 | if (AccountSearchItem::$wikiEnabled) { |
| 142 | - $wikiFilter = array_map(function ($value) { |
|
| 142 | + $wikiFilter = array_map(function($value) { |
|
| 143 | 143 | return preg_quote($value, '/'); |
| 144 | 144 | }, $this->configData->getWikiFilter()); |
| 145 | 145 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $configData->setMailSecurity($mailSecurity); |
| 81 | 81 | $configData->setMailFrom($mailFrom); |
| 82 | 82 | $configData->setMailRecipients($mailRecipients); |
| 83 | - $configData->setMailEvents($this->request->analyzeArray('mail_events', function ($items) { |
|
| 83 | + $configData->setMailEvents($this->request->analyzeArray('mail_events', function($items) { |
|
| 84 | 84 | return ConfigUtil::eventsAdapter($items); |
| 85 | 85 | })); |
| 86 | 86 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('No changes')); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 109 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 110 | 110 | $this->eventDispatcher->notifyEvent('save.config.mail', new Event($this, $eventMessage)); |
| 111 | 111 | }); |
| 112 | 112 | } |