@@ -76,7 +76,7 @@ discard block |
||
| 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 |
||
| 102 | 102 | return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Sin cambios')); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 105 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 106 | 106 | $this->eventDispatcher->notifyEvent('save.config.mail', new Event($this, $eventMessage)); |
| 107 | 107 | }); |
| 108 | 108 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('Sin cambios')); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 97 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 98 | 98 | $this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage)); |
| 99 | 99 | }); |
| 100 | 100 | } catch (ValidationException $e) { |
@@ -78,7 +78,7 @@ discard block |
||
| 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 |
||
| 159 | 159 | $eventMessage->addDescription(__u('Auth Basic deshabiltada')); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 162 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 163 | 163 | $this->eventDispatcher->notifyEvent('save.config.general', new Event($this, $eventMessage)); |
| 164 | 164 | }); |
| 165 | 165 | } |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $eventMessage->addDescription(__u('DokuWiki deshabilitada')); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 107 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 108 | 108 | $this->eventDispatcher->notifyEvent('save.config.wiki', new Event($this, $eventMessage)); |
| 109 | 109 | }); |
| 110 | 110 | } |
@@ -127,22 +127,22 @@ |
||
| 127 | 127 | $selectTags = SelectItemAdapter::factory(TagService::getItemsBasic()); |
| 128 | 128 | |
| 129 | 129 | $usersView = SelectItemAdapter::getIdFromArrayOfObjects( |
| 130 | - array_filter($accountDetailsResponse->getUsers(), function ($value) { |
|
| 130 | + array_filter($accountDetailsResponse->getUsers(), function($value) { |
|
| 131 | 131 | return (int)$value->isEdit === 0; |
| 132 | 132 | })); |
| 133 | 133 | |
| 134 | 134 | $usersEdit = SelectItemAdapter::getIdFromArrayOfObjects( |
| 135 | - array_filter($accountDetailsResponse->getUsers(), function ($value) { |
|
| 135 | + array_filter($accountDetailsResponse->getUsers(), function($value) { |
|
| 136 | 136 | return (int)$value->isEdit === 1; |
| 137 | 137 | })); |
| 138 | 138 | |
| 139 | 139 | $userGroupsView = SelectItemAdapter::getIdFromArrayOfObjects( |
| 140 | - array_filter($accountDetailsResponse->getUserGroups(), function ($value) { |
|
| 140 | + array_filter($accountDetailsResponse->getUserGroups(), function($value) { |
|
| 141 | 141 | return (int)$value->isEdit === 0; |
| 142 | 142 | })); |
| 143 | 143 | |
| 144 | 144 | $userGroupsEdit = SelectItemAdapter::getIdFromArrayOfObjects( |
| 145 | - array_filter($accountDetailsResponse->getUserGroups(), function ($value) { |
|
| 145 | + array_filter($accountDetailsResponse->getUserGroups(), function($value) { |
|
| 146 | 146 | return (int)$value->isEdit === 1; |
| 147 | 147 | })); |
| 148 | 148 | |
@@ -337,7 +337,7 @@ |
||
| 337 | 337 | 'route' => Acl::getActionRoute(ActionsInterface::PLUGIN) |
| 338 | 338 | ]); |
| 339 | 339 | |
| 340 | - $actions[] = $actionPlugins; |
|
| 340 | + $actions[] = $actionPlugins; |
|
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | if ($acl->checkUserAccess(ActionsInterface::CONFIG)) { |