Passed
Push — devel-3.0 ( 5647ad...19c8c8 )
by Rubén
04:03
created
app/modules/web/Controllers/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
             $this->view->assign('disabled', 'disabled');
149 149
             $this->view->assign('readonly', 'readonly');
150 150
 
151
-            $this->view->assign('usage', array_map(function ($value) {
151
+            $this->view->assign('usage', array_map(function($value) {
152 152
                 switch ($value->ref) {
153 153
                     case 'Account':
154 154
                         $value->icon = 'description';
Please login to merge, or discard this patch.
lib/Definitions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 return [
45 45
     Request::class => \DI\create(Request::class)
46 46
         ->constructor(\Klein\Request::createFromGlobals()),
47
-    ContextInterface::class => function (ContainerInterface $c) {
47
+    ContextInterface::class => function(ContainerInterface $c) {
48 48
         switch (APP_MODULE) {
49 49
             case 'web':
50 50
                 return $c->get(\SP\Core\Context\SessionContext::class);
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
                 return $c->get(\SP\Core\Context\StatelessContext::class);
53 53
         }
54 54
     },
55
-    Config::class => function (ContainerInterface $c) {
55
+    Config::class => function(ContainerInterface $c) {
56 56
         return new Config(new XmlHandler(new FileHandler(CONFIG_FILE)), $c->get(ContextInterface::class), $c);
57 57
     },
58
-    ConfigData::class => function (Config $config) {
58
+    ConfigData::class => function(Config $config) {
59 59
         return $config->getConfigData();
60 60
     },
61 61
     DBStorageInterface::class => \DI\create(MySQLHandler::class)
62 62
         ->constructor(\DI\factory([DatabaseConnectionData::class, 'getFromConfig'])),
63
-    Actions::class => function (ContainerInterface $c) {
63
+    Actions::class => function(ContainerInterface $c) {
64 64
         return new Actions($c->get(FileCache::class), new XmlHandler(new FileHandler(ACTIONS_FILE)));
65 65
     },
66 66
     Acl::class => \DI\autowire(Acl::class)
Please login to merge, or discard this patch.
lib/SP/Core/Context/ContextBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
             return;
113 113
         }
114 114
 
115
-        $this->context =& $context['context'];
115
+        $this->context = & $context['context'];
116 116
     }
117 117
 
118 118
     /**
Please login to merge, or discard this patch.
lib/SP/Core/Events/EventMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
             return '';
217 217
         }
218 218
 
219
-        return implode(PHP_EOL, array_map(function ($detail) use ($translate) {
219
+        return implode(PHP_EOL, array_map(function($detail) use ($translate) {
220 220
             return $this->formatDetail($detail, $translate);
221 221
         }, $this->details));
222 222
     }
Please login to merge, or discard this patch.
lib/SP/Core/Messages/LogMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
 
219 219
         if (count($this->details) > 1) {
220 220
             if ($translate === true) {
221
-                return implode(PHP_EOL, array_map(function ($detail) use ($translate) {
221
+                return implode(PHP_EOL, array_map(function($detail) use ($translate) {
222 222
                     return $this->formatDetail($detail, $translate);
223 223
                 }, $this->details));
224 224
             }
Please login to merge, or discard this patch.
lib/SP/Util/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public static function getArray(array $array): array
64 64
     {
65
-        return array_map(function ($value) {
65
+        return array_map(function($value) {
66 66
             if ($value !== null) {
67 67
                 if (is_numeric($value)) {
68 68
                     return Filter::getInt($value);
Please login to merge, or discard this patch.
lib/SP/Util/FileUtil.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,11 @@
 block discarded – undo
60 60
         $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST);
61 61
 
62 62
         foreach ($it as $file) {
63
-            if ($file->isDir()) rmdir($file->getPathname());
64
-            else unlink($file->getPathname());
63
+            if ($file->isDir()) {
64
+                rmdir($file->getPathname());
65
+            } else {
66
+                unlink($file->getPathname());
67
+            }
65 68
         }
66 69
 
67 70
         return rmdir($dir);
Please login to merge, or discard this patch.
lib/SP/Services/CustomField/CustomFieldCryptService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         try {
124 124
             $this->request = $request;
125 125
 
126
-            $this->processUpdateMasterPassword(function (CustomFieldData $customFieldData) {
126
+            $this->processUpdateMasterPassword(function(CustomFieldData $customFieldData) {
127 127
                 return Crypt::decrypt(
128 128
                     $customFieldData->getData(),
129 129
                     $customFieldData->getKey(),
Please login to merge, or discard this patch.
lib/SP/Services/CustomField/CustomFieldDefService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function delete($id)
103 103
     {
104
-        $this->transactionAware(function () use ($id) {
104
+        $this->transactionAware(function() use ($id) {
105 105
             $this->dic->get(CustomFieldService::class)
106 106
                 ->deleteCustomFieldDefinitionData($id);
107 107
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function deleteByIdBatch(array $ids)
124 124
     {
125
-        $this->transactionAware(function () use ($ids) {
125
+        $this->transactionAware(function() use ($ids) {
126 126
             $this->dic->get(CustomFieldService::class)
127 127
                 ->deleteCustomFieldDefinitionDataBatch($ids);
128 128
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function update(CustomFieldDefinitionData $itemData)
154 154
     {
155
-        return $this->transactionAware(function () use ($itemData) {
155
+        return $this->transactionAware(function() use ($itemData) {
156 156
             $customFieldDefinitionData = $this->getById($itemData->getId());
157 157
 
158 158
             // Delete the data used by the items using the previous definition
Please login to merge, or discard this patch.