Passed
Push — devel-3.0 ( e28ec2...580820 )
by Rubén
03:26
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.
app/modules/web/Controllers/ConfigAccountController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         }
103 103
 
104 104
 
105
-        $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
105
+        $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
106 106
             $this->eventDispatcher->notifyEvent('save.config.account', new Event($this, $eventMessage));
107 107
         });
108 108
     }
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
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $configData->setMailSecurity($mailSecurity);
77 77
             $configData->setMailFrom($mailFrom);
78 78
             $configData->setMailRecipients($mailRecipients);
79
-            $configData->setMailEvents($this->request->analyzeArray('mail_events', function ($items) {
79
+            $configData->setMailEvents($this->request->analyzeArray('mail_events', function($items) {
80 80
                 return ConfigUtil::eventsAdapter($items);
81 81
             }));
82 82
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Sin cambios'));
103 103
         }
104 104
 
105
-        $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
105
+        $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
106 106
             $this->eventDispatcher->notifyEvent('save.config.mail', new Event($this, $eventMessage));
107 107
         });
108 108
     }
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $syslogPort = $this->request->analyzeInt('remotesyslog_port', 0);
79 79
 
80 80
         $configData->setLogEnabled($logEnabled);
81
-        $configData->setLogEvents($this->request->analyzeArray('log_events', function ($items) {
81
+        $configData->setLogEvents($this->request->analyzeArray('log_events', function($items) {
82 82
             return ConfigUtil::eventsAdapter($items);
83 83
         }, []));
84 84
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $eventMessage->addDescription(__u('Auth Basic deshabiltada'));
160 160
         }
161 161
 
162
-        $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
162
+        $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
163 163
             $this->eventDispatcher->notifyEvent('save.config.general', new Event($this, $eventMessage));
164 164
         });
165 165
     }
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
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
                 $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Sin cambios'));
94 94
             }
95 95
 
96
-            $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
96
+            $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
97 97
                 $this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage));
98 98
             });
99 99
         } catch (ValidationException $e) {
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Account/AccountHelper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,22 +121,22 @@  discard block
 block discarded – undo
121 121
         $selectTags = SelectItemAdapter::factory(TagService::getItemsBasic());
122 122
 
123 123
         $this->view->assign('otherUsersView', $selectUsers->getItemsFromModelSelected(
124
-            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUsers(), function ($value) {
124
+            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUsers(), function($value) {
125 125
                 return (int)$value->isEdit === 0;
126 126
             })), $accountData->getUserId()));
127 127
 
128 128
         $this->view->assign('otherUsersEdit', $selectUsers->getItemsFromModelSelected(
129
-            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUsers(), function ($value) {
129
+            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUsers(), function($value) {
130 130
                 return (int)$value->isEdit === 1;
131 131
             })), $accountData->getUserId()));
132 132
 
133 133
         $this->view->assign('otherUserGroupsView', $selectUserGroups->getItemsFromModelSelected(
134
-            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUserGroups(), function ($value) {
134
+            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUserGroups(), function($value) {
135 135
                 return (int)$value->isEdit === 0;
136 136
             })), $accountData->getUserGroupId()));
137 137
 
138 138
         $this->view->assign('otherUserGroupsEdit', $selectUserGroups->getItemsFromModelSelected(
139
-            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUserGroups(), function ($value) {
139
+            SelectItemAdapter::getIdFromArrayOfObjects(array_filter($accountDetailsResponse->getUserGroups(), function($value) {
140 140
                 return (int)$value->isEdit === 1;
141 141
             })), $accountData->getUserGroupId()));
142 142
 
@@ -375,9 +375,9 @@  discard block
 block discarded – undo
375 375
     protected function initialize()
376 376
     {
377 377
         $this->acl = $this->dic->get(Acl::class);
378
-        $this->accountService = $this->dic->get(AccountService::class);;
379
-        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);;
380
-        $this->publicLinkService = $this->dic->get(PublicLinkService::class);;
378
+        $this->accountService = $this->dic->get(AccountService::class); ;
379
+        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ;
380
+        $this->publicLinkService = $this->dic->get(PublicLinkService::class); ;
381 381
 
382 382
         $this->view->assign('changesHash');
383 383
         $this->view->assign('chkUserEdit');
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
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     protected function initialize()
164 164
     {
165 165
         $this->acl = $this->dic->get(Acl::class);
166
-        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);;
166
+        $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ;
167 167
 
168 168
         $this->view->assign('sk', $this->context->generateSecurityKey());
169 169
     }
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
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         AccountSearchItem::$isDemoMode = $this->configData->isDemoEnabled();
126 126
 
127 127
         if (\SP\Services\Account\AccountSearchItem::$wikiEnabled) {
128
-            $wikiFilter = array_map(function ($value) {
128
+            $wikiFilter = array_map(function($value) {
129 129
                 return preg_quote($value, '/');
130 130
             }, $this->configData->getWikiFilter());
131 131
 
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.