@@ -177,14 +177,14 @@ discard block |
||
177 | 177 | * @return array |
178 | 178 | */ |
179 | 179 | private function formatNodes(array $nodes) { |
180 | - return array_values(array_map(function (Node $node) { |
|
180 | + return array_values(array_map(function(Node $node) { |
|
181 | 181 | /** @var \OC\Files\Node\Node $shareTypes */ |
182 | 182 | $shareTypes = $this->getShareTypes($node); |
183 | 183 | $file = \OCA\Files\Helper::formatFileInfo($node->getFileInfo()); |
184 | 184 | $file['hasPreview'] = $this->previewManager->isAvailable($node); |
185 | 185 | $parts = explode('/', dirname($node->getPath()), 4); |
186 | 186 | if (isset($parts[3])) { |
187 | - $file['path'] = '/' . $parts[3]; |
|
187 | + $file['path'] = '/'.$parts[3]; |
|
188 | 188 | } else { |
189 | 189 | $file['path'] = '/'; |
190 | 190 | } |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @throws \OCP\PreConditionNotMetException |
277 | 277 | */ |
278 | 278 | public function showHiddenFiles($show) { |
279 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show); |
|
279 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int) $show); |
|
280 | 280 | return new Response(); |
281 | 281 | } |
282 | 282 | |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @throws \OCP\PreConditionNotMetException |
291 | 291 | */ |
292 | 292 | public function cropImagePreviews($crop) { |
293 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', (int)$crop); |
|
293 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', (int) $crop); |
|
294 | 294 | return new Response(); |
295 | 295 | } |
296 | 296 | |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | * @throws \OCP\PreConditionNotMetException |
305 | 305 | */ |
306 | 306 | public function showGridView($show) { |
307 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int)$show); |
|
307 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int) $show); |
|
308 | 308 | return new Response(); |
309 | 309 | } |
310 | 310 |