Passed
Push — 3.0 ( 5e1ed3...5a5495 )
by Rubén
04:22
created
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.
lib/SP/Util/ErrorUtil.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
      * @param bool                  $render
58 58
      */
59 59
     public static function showExceptionInView(Template $view,
60
-                                               \Exception $e,
61
-                                               $replace = null,
62
-                                               $render = true)
60
+                                                \Exception $e,
61
+                                                $replace = null,
62
+                                                $render = true)
63 63
     {
64 64
         switch (get_class($e)) {
65 65
             case UpdatedMasterPassException::class:
Please login to merge, or discard this patch.
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
         $appTmp = APP_PATH . DIRECTORY_SEPARATOR . 'temp';
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);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array
282 282
     {
283
-        return array_map(function ($value) {
283
+        return array_map(function($value) {
284 284
             return intval($value);
285 285
         }, explode($delimiter, $itemsId));
286 286
     }
Please login to merge, or discard this patch.
lib/SP/Util/PasswordUtil.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
          * @return array
74 74
          */
75
-        $passGen = function () use ($alphabet, $length) {
75
+        $passGen = function() use ($alphabet, $length) {
76 76
             $pass = [];
77 77
             $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
78 78
 
Please login to merge, or discard this patch.
lib/SP/Services/Export/XmlExportService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     {
167 167
         $path = $this->exportPath . DIRECTORY_SEPARATOR . AppInfoInterface::APP_NAME;
168 168
 
169
-        array_map(function ($file) {
169
+        array_map(function($file) {
170 170
             return @unlink($file);
171 171
         }, array_merge(glob($path . '_export-*'), glob($path . '*.xml')));
172 172
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Grid/FileGrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $gridData->addDataRowSource('clientName');
125 125
         $gridData->addDataRowSource('name');
126 126
         $gridData->addDataRowSource('type');
127
-        $gridData->addDataRowSource('size', false, function ($value) {
127
+        $gridData->addDataRowSource('size', false, function($value) {
128 128
             return sprintf('%.2f KB', $value / 1000);
129 129
         });
130 130
         $gridData->setData($this->queryResult);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $gridAction->setIcon($this->icons->getIconDownload());
181 181
         $gridAction->setOnClickFunction('file/download');
182 182
         $gridAction->addData('action-route', Acl::getActionRoute(ActionsInterface::ACCOUNT_FILE_DOWNLOAD));
183
-        $gridAction->setRuntimeData(function ($dataItem) use ($gridAction) {
183
+        $gridAction->setRuntimeData(function($dataItem) use ($gridAction) {
184 184
             return ['item-type' => $dataItem->type];
185 185
         });
186 186
 
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Grid/EventlogGrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,11 +123,11 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
lib/SP/Storage/Database/DatabaseUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.