@@ -104,7 +104,7 @@ |
||
104 | 104 | $eventMessage->addDescription(__u('DokuWiki deshabilitada')); |
105 | 105 | } |
106 | 106 | |
107 | - $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
107 | + $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
108 | 108 | $this->eventDispatcher->notifyEvent('save.config.wiki', new Event($this, $eventMessage)); |
109 | 109 | }); |
110 | 110 | } |
@@ -148,7 +148,7 @@ |
||
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'; |
@@ -102,7 +102,7 @@ |
||
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 | } |
@@ -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 | $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 | } |
@@ -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 | - $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 | } |
@@ -93,7 +93,7 @@ |
||
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) { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $GridData->setDataRowSourceId('id'); |
186 | 186 | $GridData->addDataRowSource('name'); |
187 | 187 | $GridData->addDataRowSource('description'); |
188 | - $GridData->addDataRowSource('isGlobal', false, function ($value) { |
|
188 | + $GridData->addDataRowSource('isGlobal', false, function($value) { |
|
189 | 189 | return $value ? __('SI') : __('NO'); |
190 | 190 | }); |
191 | 191 | $GridData->setData($queryResult); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | $GridData = new DataGridData(); |
270 | 270 | $GridData->setDataRowSourceId('id'); |
271 | 271 | $GridData->addDataRowSource('name'); |
272 | - $GridData->addDataRowSource('moduleId', false, function ($value) { |
|
272 | + $GridData->addDataRowSource('moduleId', false, function($value) { |
|
273 | 273 | return CustomFieldDefService::getFieldModuleById($value); |
274 | 274 | }); |
275 | 275 | $GridData->addDataRowSource('typeName'); |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | $GridData->addDataRowSource('clientName'); |
360 | 360 | $GridData->addDataRowSource('name'); |
361 | 361 | $GridData->addDataRowSource('type'); |
362 | - $GridData->addDataRowSource('size', false, function ($value) { |
|
362 | + $GridData->addDataRowSource('size', false, function($value) { |
|
363 | 363 | return sprintf('%.2f KB', $value / 1000); |
364 | 364 | }); |
365 | 365 | $GridData->setData($queryResult); |
@@ -885,7 +885,7 @@ discard block |
||
885 | 885 | $GridData = new DataGridData(); |
886 | 886 | $GridData->setDataRowSourceId('id'); |
887 | 887 | $GridData->addDataRowSource('userLogin'); |
888 | - $GridData->addDataRowSource('actionId', false, function ($value) { |
|
888 | + $GridData->addDataRowSource('actionId', false, function($value) { |
|
889 | 889 | return Acl::getActionInfo($value); |
890 | 890 | }); |
891 | 891 | $GridData->setData($queryResult); |
@@ -1265,11 +1265,11 @@ discard block |
||
1265 | 1265 | $GridData->addDataRowSource('action'); |
1266 | 1266 | $GridData->addDataRowSource('login'); |
1267 | 1267 | $GridData->addDataRowSource('ipAddress', false, |
1268 | - function ($value) use ($isDemoMode) { |
|
1268 | + function($value) use ($isDemoMode) { |
|
1269 | 1269 | return $isDemoMode ? preg_replace('#\d+#', '*', $value) : $value; |
1270 | 1270 | }); |
1271 | 1271 | $GridData->addDataRowSource('description', false, |
1272 | - function ($value) use ($isDemoMode) { |
|
1272 | + function($value) use ($isDemoMode) { |
|
1273 | 1273 | if ($isDemoMode) { |
1274 | 1274 | $value = preg_replace('/\\d+\\.\\d+\\.\\d+\\.\\d+/', "*.*.*.*", $value); |
1275 | 1275 | } |
@@ -1366,7 +1366,7 @@ discard block |
||
1366 | 1366 | $GridData = new DataGridData(); |
1367 | 1367 | $GridData->setDataRowSourceId('id'); |
1368 | 1368 | $GridData->addDataRowSource('date', false, |
1369 | - function ($value) { |
|
1369 | + function($value) { |
|
1370 | 1370 | return DateUtil::getDateFromUnix($value); |
1371 | 1371 | }); |
1372 | 1372 | $GridData->addDataRowSource('type'); |
@@ -121,22 +121,22 @@ discard block |
||
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 |
||
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'); |
@@ -163,7 +163,7 @@ |
||
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 | } |