@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function checkMandatory() |
| 255 | 255 | { |
| 256 | - $missing = array_filter(self::EXTENSIONS, function ($v, $k) { |
|
| 256 | + $missing = array_filter(self::EXTENSIONS, function($v, $k) { |
|
| 257 | 257 | return $v === true && !in_array($k, $this->available); |
| 258 | 258 | }, ARRAY_FILTER_USE_BOTH); |
| 259 | 259 | |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | */ |
| 272 | 272 | public function getMissing() |
| 273 | 273 | { |
| 274 | - return array_filter(self::EXTENSIONS, function ($k) { |
|
| 274 | + return array_filter(self::EXTENSIONS, function($k) { |
|
| 275 | 275 | return !in_array($k, $this->available); |
| 276 | 276 | }, ARRAY_FILTER_USE_KEY); |
| 277 | 277 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | { |
| 87 | 87 | if (is_array($data) || is_object($data)) { |
| 88 | 88 | array_walk_recursive($data, |
| 89 | - function (&$value) { |
|
| 89 | + function(&$value) { |
|
| 90 | 90 | if (is_object($value)) { |
| 91 | 91 | foreach ($value as $property => $v) { |
| 92 | 92 | if (is_string($v) && $v !== '') { |
@@ -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'); |
@@ -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 | } |
@@ -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 | } |