@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $gridData = new DataGridData(); |
| 118 | 118 | $gridData->setDataRowSourceId('id'); |
| 119 | 119 | $gridData->addDataRowSource('name'); |
| 120 | - $gridData->addDataRowSource('moduleId', false, function ($value) { |
|
| 120 | + $gridData->addDataRowSource('moduleId', false, function($value) { |
|
| 121 | 121 | return CustomFieldDefService::getFieldModuleById($value); |
| 122 | 122 | }); |
| 123 | 123 | $gridData->addDataRowSource('typeName'); |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $gridData = new DataGridData(); |
| 134 | 134 | $gridData->setDataRowSourceId('id'); |
| 135 | 135 | $gridData->addDataRowSource('date', false, |
| 136 | - function ($value) { |
|
| 136 | + function($value) { |
|
| 137 | 137 | return DateUtil::getDateFromUnix($value); |
| 138 | 138 | }); |
| 139 | 139 | $gridData->addDataRowSource('type'); |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $gridData->addDataRowSource('clientName'); |
| 121 | 121 | $gridData->addDataRowSource('name'); |
| 122 | 122 | $gridData->addDataRowSource('type'); |
| 123 | - $gridData->addDataRowSource('size', false, function ($value) { |
|
| 123 | + $gridData->addDataRowSource('size', false, function($value) { |
|
| 124 | 124 | return sprintf('%.2f KB', $value / 1000); |
| 125 | 125 | }); |
| 126 | 126 | $gridData->setData($this->queryResult); |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $gridData = new DataGridData(); |
| 118 | 118 | $gridData->setDataRowSourceId('id'); |
| 119 | 119 | $gridData->addDataRowSource('userLogin'); |
| 120 | - $gridData->addDataRowSource('actionId', false, function ($value) { |
|
| 120 | + $gridData->addDataRowSource('actionId', false, function($value) { |
|
| 121 | 121 | return Acl::getActionInfo($value); |
| 122 | 122 | }); |
| 123 | 123 | $gridData->setData($this->queryResult); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | $gridData->setDataRowSourceId('id'); |
| 117 | 117 | $gridData->addDataRowSource('name'); |
| 118 | 118 | $gridData->addDataRowSource('description'); |
| 119 | - $gridData->addDataRowSource('isGlobal', false, function ($value) { |
|
| 119 | + $gridData->addDataRowSource('isGlobal', false, function($value) { |
|
| 120 | 120 | return $value ? __('SI') : __('NO'); |
| 121 | 121 | }); |
| 122 | 122 | $gridData->setData($this->queryResult); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function setFields(array $fields, array $values) |
| 66 | 66 | { |
| 67 | - $this->fields = array_map(function ($value) { |
|
| 67 | + $this->fields = array_map(function($value) { |
|
| 68 | 68 | return strpos($value, '=') === false ? "$value = ?" : $value; |
| 69 | 69 | }, $fields); |
| 70 | 70 | |
@@ -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 | } |