@@ -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-*'), |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | $template->addTemplate('accounts'); |
| 176 | 176 | $template->assign('gdIsAvailable', $this->extensionChecker->checkGdAvailable()); |
| 177 | 177 | |
| 178 | - $mimeTypesAvailable = array_map(function ($value) { |
|
| 178 | + $mimeTypesAvailable = array_map(function($value) { |
|
| 179 | 179 | return $value['type']; |
| 180 | 180 | }, $this->dic->get(MimeTypes::class)->getMimeTypes()); |
| 181 | 181 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $eventMessage->addDescription(__u('Wiki disabled')); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 81 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 82 | 82 | $this->eventDispatcher->notifyEvent('save.config.wiki', new Event($this, $eventMessage)); |
| 83 | 83 | }); |
| 84 | 84 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $eventMessage->addDescription(__u('DokuWiki disabled')); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - return $this->saveConfig($configData, $this->config, function () use ($eventMessage) { |
|
| 85 | + return $this->saveConfig($configData, $this->config, function() use ($eventMessage) { |
|
| 86 | 86 | $this->eventDispatcher->notifyEvent('save.config.dokuwiki', new Event($this, $eventMessage)); |
| 87 | 87 | }); |
| 88 | 88 | } |
@@ -142,12 +142,12 @@ |
||
| 142 | 142 | $gridData = new DataGridData(); |
| 143 | 143 | $gridData->setDataRowSourceId('id'); |
| 144 | 144 | $gridData->addDataRowSource('date', false, |
| 145 | - function ($value) { |
|
| 145 | + function($value) { |
|
| 146 | 146 | return DateUtil::getDateFromUnix($value); |
| 147 | 147 | }); |
| 148 | 148 | $gridData->addDataRowSource('type'); |
| 149 | 149 | $gridData->addDataRowSource('component'); |
| 150 | - $gridData->addDataRowSource('description', false, function ($data) { |
|
| 150 | + $gridData->addDataRowSource('description', false, function($data) { |
|
| 151 | 151 | return Html::stripTags($data); |
| 152 | 152 | }); |
| 153 | 153 | $gridData->addDataRowSourceWithIcon('checked', $this->icons->getIconEnabled()->setTitle(__('Read'))); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | { |
| 57 | 57 | return implode( |
| 58 | 58 | $this->delimiter, |
| 59 | - array_map(function ($value) use ($translate) { |
|
| 59 | + array_map(function($value) use ($translate) { |
|
| 60 | 60 | return sprintf( |
| 61 | 61 | '%s: %s', |
| 62 | 62 | $translate ? __($value[0]) : $value[0] |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | return $this->saveConfig( |
| 109 | 109 | $configData, |
| 110 | 110 | $this->config, |
| 111 | - function () use ($eventMessage) { |
|
| 111 | + function() use ($eventMessage) { |
|
| 112 | 112 | $this->eventDispatcher->notifyEvent( |
| 113 | 113 | 'save.config.account', |
| 114 | 114 | new Event($this, $eventMessage) |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | return implode( |
| 81 | 81 | '', |
| 82 | - array_map(function ($attribute) use ($value) { |
|
| 82 | + array_map(function($attribute) use ($value) { |
|
| 83 | 83 | return sprintf('(%s=%s)', $attribute, $value); |
| 84 | 84 | }, $attributes) |
| 85 | 85 | ); |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | $gridData->addDataRowSource('getDateAddFormat', true); |
| 130 | 130 | $gridData->addDataRowSource('getDateExpireFormat', true); |
| 131 | 131 | $gridData->addDataRowSource('userLogin'); |
| 132 | - $gridData->addDataRowSource('notify', false, function ($value) { |
|
| 132 | + $gridData->addDataRowSource('notify', false, function($value) { |
|
| 133 | 133 | return $value ? __('ON') : __('OFF'); |
| 134 | 134 | }); |
| 135 | 135 | $gridData->addDataRowSource('getCountViewsString', true); |