Passed
Push — 3.0 ( 5e1ed3...5a5495 )
by Rubén
04:22
created
lib/SP/Services/Upgrade/UpgradeConfigService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
lib/SP/Services/Account/AccountCryptService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/SP/Services/Mail/MailService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Grid/ClientGrid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Account/AccountSearchHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigMailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigLdapController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
                 return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('No changes'));
98 98
             }
99 99
 
100
-            return $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
100
+            return $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
101 101
                 $this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage));
102 102
             });
103 103
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigGeneralController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $syslogPort = $this->request->analyzeInt('remotesyslog_port', 0);
86 86
 
87 87
         $configData->setLogEnabled($logEnabled);
88
-        $configData->setLogEvents($this->request->analyzeArray('log_events', function ($items) {
88
+        $configData->setLogEvents($this->request->analyzeArray('log_events', function($items) {
89 89
             return ConfigUtil::eventsAdapter($items);
90 90
         }, []));
91 91
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             $eventMessage->addDescription(__u('Auth Basic disabled'));
167 167
         }
168 168
 
169
-        return $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
169
+        return $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
170 170
             $this->eventDispatcher->notifyEvent('save.config.general', new Event($this, $eventMessage));
171 171
         });
172 172
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigAccountController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         }
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.account', new Event($this, $eventMessage));
111 111
         });
112 112
     }
Please login to merge, or discard this patch.