diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-11-23 11:40:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 11:40:02 +0100 |
commit | 3d814b0c36e736f8f9051d6ee6f0d20fc8811640 (patch) | |
tree | 843203cd1346158aab3515687e37a90e78c929e9 /apps/files/lib/Controller/ViewController.php | |
parent | 09879700aa5a1ff354ce1366638da56720b4aa08 (diff) | |
parent | aa5f037af71c915424c6dcfd5ad2dc82797dc0d6 (diff) | |
download | nextcloud-server-3d814b0c36e736f8f9051d6ee6f0d20fc8811640.tar.gz nextcloud-server-3d814b0c36e736f8f9051d6ee6f0d20fc8811640.zip |
Merge pull request #39271 from nextcloud/bump-coding-standards
Bump CS Fixer rules to follow latest Nextcloud standards
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 38e3858cd38..ca9ac80b9e2 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -35,7 +35,6 @@ */ namespace OCA\Files\Controller; -use OC\AppFramework\Http; use OCA\Files\Activity\Helper; use OCA\Files\AppInfo\Application; use OCA\Files\Event\LoadAdditionalScriptsEvent; @@ -214,7 +213,8 @@ class ViewController extends Controller { if ($fileid !== null && $view !== 'trashbin') { try { return $this->redirectToFileIfInTrashbin((int) $fileid); - } catch (NotFoundException $e) {} + } catch (NotFoundException $e) { + } } // Load the files we need @@ -248,7 +248,7 @@ class ViewController extends Controller { try { // If view is files, we use the directory, otherwise we use the root storage - $storageInfo = $this->getStorageInfo(($view === 'files' && $dir) ? $dir : '/'); + $storageInfo = $this->getStorageInfo(($view === 'files' && $dir) ? $dir : '/'); } catch(\Exception $e) { $storageInfo = $this->getStorageInfo(); } @@ -399,7 +399,8 @@ class ViewController extends Controller { try { $this->redirectToFileIfInTrashbin($fileId); - } catch (NotFoundException $e) {} + } catch (NotFoundException $e) { + } if (!empty($nodes)) { $node = current($nodes); |