aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-15 20:26:04 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:26 +0200
commitdd1e47b3b896e2ee59faf5f423bb911c5d2c2548 (patch)
tree53f729553c289a226ce43c284629de44f5bbe4a2 /apps/files_sharing/lib/helper.php
parent2049bedcaf670ef2394ce8b19e0d3f2174513b53 (diff)
downloadnextcloud-server-dd1e47b3b896e2ee59faf5f423bb911c5d2c2548.tar.gz
nextcloud-server-dd1e47b3b896e2ee59faf5f423bb911c5d2c2548.zip
typos, use, unused and return fixed
Diffstat (limited to 'apps/files_sharing/lib/helper.php')
-rw-r--r--apps/files_sharing/lib/helper.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/helper.php b/apps/files_sharing/lib/helper.php
index 1381c0002d3..e2780e98935 100644
--- a/apps/files_sharing/lib/helper.php
+++ b/apps/files_sharing/lib/helper.php
@@ -2,6 +2,9 @@
namespace OCA\Files_Sharing;
+use OC_Config;
+use PasswordHash;
+
class Helper {
/**
@@ -26,9 +29,6 @@ class Helper {
exit;
}
- $type = $linkItem['item_type'];
- $fileSource = $linkItem['file_source'];
- $shareOwner = $linkItem['uid_owner'];
$rootLinkItem = \OCP\Share::resolveReShare($linkItem);
$path = null;
if (isset($rootLinkItem['uid_owner'])) {
@@ -61,7 +61,6 @@ class Helper {
}
$basePath = $path;
- $rootName = basename($path);
if ($relativePath !== null && \OC\Files\Filesystem::isReadable($basePath . $relativePath)) {
$path .= \OC\Files\Filesystem::normalizePath($relativePath);