@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | { |
135 | 135 | $oops = "Oops, it looks like this content doesn't exist..."; |
136 | 136 | |
137 | - $this->router->onError(function ($router, $err_msg, $type, $err) { |
|
137 | + $this->router->onError(function($router, $err_msg, $type, $err) { |
|
138 | 138 | logger('Routing error: ' . $err_msg); |
139 | 139 | |
140 | 140 | /** @var Exception|\Throwable $err */ |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | // Manage requests for api module |
148 | 148 | $this->router->respond(['POST'], |
149 | 149 | '@/api\.php', |
150 | - function ($request, $response, $service) use ($oops) { |
|
150 | + function($request, $response, $service) use ($oops) { |
|
151 | 151 | try { |
152 | 152 | $apiRequest = self::$container->get(ApiRequest::class); |
153 | 153 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | // Manage requests for web module |
187 | 187 | $this->router->respond(['GET', 'POST'], |
188 | 188 | '@/index\.php', |
189 | - function ($request, $response, $service) use ($oops) { |
|
189 | + function($request, $response, $service) use ($oops) { |
|
190 | 190 | try { |
191 | 191 | /** @var \Klein\Request $request */ |
192 | 192 | $route = Filter::getString($request->param('r', 'index/index')); |
@@ -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 | } |