@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | $entry['active'] = false; |
94 | - if(!isset($entry['icon'])) { |
|
94 | + if (!isset($entry['icon'])) { |
|
95 | 95 | $entry['icon'] = ''; |
96 | 96 | } |
97 | - if(!isset($entry['classes'])) { |
|
97 | + if (!isset($entry['classes'])) { |
|
98 | 98 | $entry['classes'] = ''; |
99 | 99 | } |
100 | - if(!isset($entry['type'])) { |
|
100 | + if (!isset($entry['type'])) { |
|
101 | 101 | $entry['type'] = 'link'; |
102 | 102 | } |
103 | 103 | $this->entries[$entry['id']] = $entry; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | ]); |
230 | 230 | |
231 | 231 | $logoutUrl = \OC_User::getLogoutUrl($this->urlGenerator); |
232 | - if($logoutUrl !== '') { |
|
232 | + if ($logoutUrl !== '') { |
|
233 | 233 | // Logout |
234 | 234 | $this->add([ |
235 | 235 | 'type' => 'settings', |
@@ -169,13 +169,13 @@ discard block |
||
169 | 169 | * @return array |
170 | 170 | */ |
171 | 171 | private function formatNodes(array $nodes) { |
172 | - return array_values(array_map(function (Node $node) { |
|
172 | + return array_values(array_map(function(Node $node) { |
|
173 | 173 | /** @var \OC\Files\Node\Node $shareTypes */ |
174 | 174 | $shareTypes = $this->getShareTypes($node); |
175 | 175 | $file = \OCA\Files\Helper::formatFileInfo($node->getFileInfo()); |
176 | 176 | $parts = explode('/', dirname($node->getPath()), 4); |
177 | 177 | if (isset($parts[3])) { |
178 | - $file['path'] = '/' . $parts[3]; |
|
178 | + $file['path'] = '/'.$parts[3]; |
|
179 | 179 | } else { |
180 | 180 | $file['path'] = '/'; |
181 | 181 | } |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | * @param bool $show |
287 | 287 | */ |
288 | 288 | public function showHiddenFiles($show) { |
289 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show); |
|
289 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int) $show); |
|
290 | 290 | return new Response(); |
291 | 291 | } |
292 | 292 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | foreach ($navItems as $item) { |
307 | 307 | // check if data is valid |
308 | 308 | if (($show === 0 || $show === 1) && isset($item['expandedState']) && $key === $item['expandedState']) { |
309 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int)$show); |
|
309 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int) $show); |
|
310 | 310 | return new Response(); |
311 | 311 | } |
312 | 312 | } |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * @return Response |
325 | 325 | */ |
326 | 326 | public function setSortingStrategy($strategy) { |
327 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', (String)$strategy); |
|
327 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', (String) $strategy); |
|
328 | 328 | return new Response(); |
329 | 329 | } |
330 | 330 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | * @return Response |
349 | 349 | */ |
350 | 350 | public function setReverseQuickaccess($reverse) { |
351 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', (int)$reverse); |
|
351 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', (int) $reverse); |
|
352 | 352 | return new Response(); |
353 | 353 | } |
354 | 354 | |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | * @return Response |
376 | 376 | */ |
377 | 377 | public function setShowQuickaccessSettings($show) { |
378 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', (int)$show); |
|
378 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', (int) $show); |
|
379 | 379 | return new Response(); |
380 | 380 | } |
381 | 381 | |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | * @return Response |
403 | 403 | */ |
404 | 404 | public function setSortingOrder($order) { |
405 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', (String)$order); |
|
405 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', (String) $order); |
|
406 | 406 | return new Response(); |
407 | 407 | } |
408 | 408 |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | protected function renderScript($appName, $scriptName) { |
105 | 105 | $content = ''; |
106 | 106 | $appPath = \OC_App::getAppPath($appName); |
107 | - $scriptPath = $appPath . '/' . $scriptName; |
|
107 | + $scriptPath = $appPath.'/'.$scriptName; |
|
108 | 108 | if (file_exists($scriptPath)) { |
109 | 109 | // TODO: sanitize path / script name ? |
110 | 110 | ob_start(); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | $params = []; |
292 | 292 | |
293 | 293 | if (empty($files) && $this->appManager->isEnabledForUser('files_trashbin')) { |
294 | - $baseFolder = $this->rootFolder->get($uid . '/files_trashbin/files/'); |
|
294 | + $baseFolder = $this->rootFolder->get($uid.'/files_trashbin/files/'); |
|
295 | 295 | $files = $baseFolder->getById($fileId); |
296 | 296 | $params['view'] = 'trashbin'; |
297 | 297 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | <li id="quota" |
13 | 13 | class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php |
14 | 14 | if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { |
15 | - ?>has-tooltip" title="<?php p($_['usage_relative'] . '%'); |
|
15 | + ?>has-tooltip" title="<?php p($_['usage_relative'].'%'); |
|
16 | 16 | } ?>"> |
17 | 17 | <a href="#" class="icon-quota svg"> |
18 | 18 | <p id="quotatext"><?php |