Passed
Push — 3.0 ( 45706c...79e259 )
by Rubén
06:08
created
lib/SP/Util/Util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/SP/Core/Messages/HtmlFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/SP/Services/Crypt/TemporaryMasterPassService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $syslogPort = $this->request->analyzeInt('remotesyslog_port', 0);
87 87
 
88 88
         $configData->setLogEnabled($logEnabled);
89
-        $configData->setLogEvents($this->request->analyzeArray('log_events', function ($items) {
89
+        $configData->setLogEvents($this->request->analyzeArray('log_events', function($items) {
90 90
             return ConfigUtil::eventsAdapter($items);
91 91
         }, []));
92 92
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         return $this->saveConfig(
171 171
             $configData,
172 172
             $this->config,
173
-            function () use ($eventMessage, $configData) {
173
+            function() use ($eventMessage, $configData) {
174 174
                 if ($configData->isMaintenance()) {
175 175
                     Util::lockApp($this->session->getUserData()->getId(), 'config');
176 176
                 }
Please login to merge, or discard this patch.
app/modules/web/Controllers/TaskController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         try {
74 74
             $this->taskService->trackStatus($taskId,
75
-                function ($id, $message) {
75
+                function($id, $message) {
76 76
                     echo 'id: ', $id, PHP_EOL, 'data: ', $message, PHP_EOL, PHP_EOL;
77 77
 
78 78
                     ob_flush();
Please login to merge, or discard this patch.
app/modules/web/Controllers/ItemsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     public function notificationsAction()
116 116
     {
117 117
         $notifications = array_map(
118
-            function ($notification) {
118
+            function($notification) {
119 119
                 /** @@var $notification NotificationData */
120 120
                 return sprintf(
121 121
                     '(%s) - %s',
Please login to merge, or discard this patch.
lib/SP/Bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $oops = "Oops, it looks like this content does not exist...";
137 137
 
138
-        $this->router->onError(function ($router, $err_msg, $type, $err) {
138
+        $this->router->onError(function($router, $err_msg, $type, $err) {
139 139
             logger('Routing error: ' . $err_msg);
140 140
 
141 141
             /** @var Exception|\Throwable $err */
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         // Manage requests for api module
149 149
         $this->router->respond(['POST'],
150 150
             '@/api\.php',
151
-            function ($request, $response, $service) use ($oops) {
151
+            function($request, $response, $service) use ($oops) {
152 152
                 try {
153 153
                     logger('API route');
154 154
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         // Manage requests for web module
192 192
         $this->router->respond(['GET', 'POST'],
193 193
             '@(?!/api\.php)',
194
-            function ($request, $response, $service) use ($oops) {
194
+            function($request, $response, $service) use ($oops) {
195 195
                 try {
196 196
                     logger('WEB route');
197 197
 
Please login to merge, or discard this patch.
lib/SP/Services/Upgrade/UpgradeCustomFieldDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 $customFieldType[$customFieldTypeData->getName()] = $customFieldTypeData->getId();
72 72
             }
73 73
 
74
-            $this->transactionAware(function () use ($customFieldType) {
74
+            $this->transactionAware(function() use ($customFieldType) {
75 75
                 $customFieldDefService = $this->dic->get(CustomFieldDefService::class);
76 76
 
77 77
                 $queryData = new QueryData();
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         );
152 152
 
153 153
         try {
154
-            $this->transactionAware(function () {
154
+            $this->transactionAware(function() {
155 155
                 $customFieldDefService = $this->dic->get(CustomFieldDefService::class);
156 156
 
157 157
                 foreach ($customFieldDefService->getAllBasic() as $item) {
Please login to merge, or discard this patch.