@@ -178,13 +178,13 @@ discard block |
||
178 | 178 | */ |
179 | 179 | private function formatNodes(array $nodes) { |
180 | 180 | $shareTypesForNodes = $this->getShareTypesForNodes($nodes); |
181 | - return array_values(array_map(function (Node $node) use ($shareTypesForNodes) { |
|
181 | + return array_values(array_map(function(Node $node) use ($shareTypesForNodes) { |
|
182 | 182 | $shareTypes = $shareTypesForNodes[$node->getId()] ?? []; |
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 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | ]; |
215 | 215 | $shareTypes = []; |
216 | 216 | |
217 | - $nodeIds = array_map(function (Node $node) { |
|
217 | + $nodeIds = array_map(function(Node $node) { |
|
218 | 218 | return $node->getId(); |
219 | 219 | }, $nodes); |
220 | 220 | |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | foreach ($navItems as $item) { |
352 | 352 | // check if data is valid |
353 | 353 | if (($show === 0 || $show === 1) && isset($item['expandedState']) && $key === $item['expandedState']) { |
354 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (string)$show); |
|
354 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (string) $show); |
|
355 | 355 | return new Response(); |
356 | 356 | } |
357 | 357 | } |