Passed
Push — devel-3.0 ( e32256...e49526 )
by Rubén
04:31
created
app/modules/web/Controllers/ControllerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
         $this->checkLoggedInSession(
227 227
             $this->session,
228 228
             $this->request,
229
-            function ($redirect) {
229
+            function($redirect) {
230 230
                 $this->router->response()
231 231
                     ->redirect($redirect)
232 232
                     ->send(true);
Please login to merge, or discard this patch.
app/modules/web/Controllers/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
             $this->checkForwarded();
62 62
 
63
-            $redirector = function ($route) use ($from) {
63
+            $redirector = function($route) use ($from) {
64 64
                 $uri = new Uri('index.php');
65 65
                 $uri->addParam('r', $route);
66 66
 
Please login to merge, or discard this patch.
lib/SP/Util/Util.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         /**
65 65
          * @return array
66 66
          */
67
-        $passGen = function () use ($alphabet, $length) {
67
+        $passGen = function() use ($alphabet, $length) {
68 68
             $pass = [];
69 69
             $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
70 70
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $appTmp = APP_PATH . DIRECTORY_SEPARATOR . 'temp';
133 133
         $file = 'syspass.test';
134 134
 
135
-        $checkDir = function ($dir) use ($file) {
135
+        $checkDir = function($dir) use ($file) {
136 136
             if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) {
137 137
                 return $dir;
138 138
             }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                 if ($srcClass !== null) {
243 243
                     $serialized = preg_replace_callback(
244 244
                         '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/',
245
-                        function ($matches) {
245
+                        function($matches) {
246 246
                             return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"';
247 247
                         },
248 248
                         $serialized);
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array
346 346
     {
347
-        return array_map(function ($value) {
347
+        return array_map(function($value) {
348 348
             return intval($value);
349 349
         }, explode($delimiter, $itemsId));
350 350
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/SimpleControllerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
         $this->checkLoggedInSession(
227 227
             $this->session,
228 228
             $this->request,
229
-            function ($redirect) {
229
+            function($redirect) {
230 230
                 $this->router->response()
231 231
                     ->redirect($redirect)
232 232
                     ->send(true);
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('(%s) - %s', $notification->getComponent(), Html::truncate($notification->getDescription(), 30));
121 121
             }, $this->dic
Please login to merge, or discard this patch.
lib/SP/Mvc/View/Template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
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(__('No es posible obtener la variable "%s"'), $key), 'WARN');
366 366
             }
Please login to merge, or discard this patch.
lib/SP/Html/DataGrid/Action/DataGridActionBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function setRuntimeFilter($class, $method)
155 155
     {
156 156
         if (method_exists($class, $method)) {
157
-            $this->runtimeFilter = function ($filter) use ($method) {
157
+            $this->runtimeFilter = function($filter) use ($method) {
158 158
 //                new \ReflectionMethod($class, $method);
159 159
                 return $filter->{$method}();
160 160
             };
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     {
261 261
         if ($this->onClickArgs !== null) {
262 262
 
263
-            $args = array_map(function ($value) {
263
+            $args = array_map(function($value) {
264 264
                 return (!is_numeric($value) && $value !== 'this') ? '\'' . $value . '\'' : $value;
265 265
             }, $this->onClickArgs);
266 266
 
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Account/AccountHistoryHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,6 +185,6 @@
 block discarded – undo
185 185
     protected function initialize()
186 186
     {
187 187
         $this->acl = $this->dic->get(Acl::class);
188
-        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);;
188
+        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ;
189 189
     }
190 190
 }
191 191
\ No newline at end of file
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('Sin cambios'));
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.