@@ -123,11 +123,11 @@ |
||
| 123 | 123 | $gridData->addDataRowSource('action', null, null, false); |
| 124 | 124 | $gridData->addDataRowSource('login'); |
| 125 | 125 | $gridData->addDataRowSource('ipAddress', false, |
| 126 | - function ($value) use ($isDemoMode) { |
|
| 126 | + function($value) use ($isDemoMode) { |
|
| 127 | 127 | return $isDemoMode ? '*.*.*.*' : $value; |
| 128 | 128 | }); |
| 129 | 129 | $gridData->addDataRowSource('description', false, |
| 130 | - function ($value) use ($isDemoMode) { |
|
| 130 | + function($value) use ($isDemoMode) { |
|
| 131 | 131 | if ($isDemoMode) { |
| 132 | 132 | $value = preg_replace('/\d+\.\d+\.\d+\.\d+/', '*.*.*.*', $value); |
| 133 | 133 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | public function checkDatabaseTables($dbName) |
| 89 | 89 | { |
| 90 | 90 | try { |
| 91 | - $tables = implode(',', array_map(function ($value) { |
|
| 91 | + $tables = implode(',', array_map(function($value) { |
|
| 92 | 92 | return '\'' . $value . '\''; |
| 93 | 93 | }, self::$tables)); |
| 94 | 94 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $message = EventMessage::factory(); |
| 78 | 78 | |
| 79 | 79 | if (isset($CONFIG) && is_array($CONFIG)) { |
| 80 | - $paramMapper = function ($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 80 | + $paramMapper = function($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 81 | 81 | if (isset($CONFIG[$mapFrom])) { |
| 82 | 82 | $message->addDetail(__u('Parameter'), $mapFrom); |
| 83 | 83 | $configData->{$mapTo}($CONFIG[$mapFrom]); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $this->eventDispatcher->notifyEvent('send.mail', |
| 140 | 140 | new Event($this, EventMessage::factory() |
| 141 | 141 | ->addDescription(__u('Email sent')) |
| 142 | - ->addDetail(__u('Recipient'), implode(',', array_map(function ($value) { |
|
| 142 | + ->addDetail(__u('Recipient'), implode(',', array_map(function($value) { |
|
| 143 | 143 | return $value[0]; |
| 144 | 144 | }, $this->mailer->getToAddresses())))) |
| 145 | 145 | ); |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $gridData->setDataRowSourceId('id'); |
| 120 | 120 | $gridData->addDataRowSource('name'); |
| 121 | 121 | $gridData->addDataRowSource('description'); |
| 122 | - $gridData->addDataRowSource('isGlobal', false, function ($value) { |
|
| 122 | + $gridData->addDataRowSource('isGlobal', false, function($value) { |
|
| 123 | 123 | return $value ? __('YES') : __('NO'); |
| 124 | 124 | }); |
| 125 | 125 | $gridData->setData($this->queryResult); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | AccountSearchItem::$showTags = $userPreferences->isShowAccountSearchFilters(); |
| 140 | 140 | |
| 141 | 141 | if (AccountSearchItem::$wikiEnabled) { |
| 142 | - $wikiFilter = array_map(function ($value) { |
|
| 142 | + $wikiFilter = array_map(function($value) { |
|
| 143 | 143 | return preg_quote($value, '/'); |
| 144 | 144 | }, $this->configData->getWikiFilter()); |
| 145 | 145 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('No changes')); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 100 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 101 | 101 | $this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage)); |
| 102 | 102 | }); |
| 103 | 103 | } catch (\Exception $e) { |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | { |
| 191 | 191 | $path = $this->path . DIRECTORY_SEPARATOR . AppInfoInterface::APP_NAME; |
| 192 | 192 | |
| 193 | - array_map(function ($file) { |
|
| 193 | + array_map(function($file) { |
|
| 194 | 194 | return @unlink($file); |
| 195 | 195 | }, array_merge( |
| 196 | 196 | glob($path . '_db-*'), |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | $this->session, |
| 240 | 240 | $this->request, |
| 241 | 241 | $this->configData, |
| 242 | - function ($redirect) { |
|
| 242 | + function($redirect) { |
|
| 243 | 243 | $this->router->response() |
| 244 | 244 | ->redirect($redirect) |
| 245 | 245 | ->send(true); |