aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/ShareBackend
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-24 07:44:09 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-24 11:42:07 +0200
commit6d4731024a18b7497dc19eefa97393eae7a3617b (patch)
treeef70dba744dcf8fa79574b07a7627771f1c7f62e /apps/files_sharing/lib/ShareBackend
parent989614f9d5faa11157b232785537eb5cca927649 (diff)
downloadnextcloud-server-6d4731024a18b7497dc19eefa97393eae7a3617b.tar.gz
nextcloud-server-6d4731024a18b7497dc19eefa97393eae7a3617b.zip
Some app fixes of phpstorm inspections
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/lib/ShareBackend')
-rw-r--r--apps/files_sharing/lib/ShareBackend/Folder.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/ShareBackend/Folder.php b/apps/files_sharing/lib/ShareBackend/Folder.php
index 4929bebf40b..07e353cc6a6 100644
--- a/apps/files_sharing/lib/ShareBackend/Folder.php
+++ b/apps/files_sharing/lib/ShareBackend/Folder.php
@@ -50,8 +50,8 @@ class Folder extends File implements \OCP\Share_Backend_Collection {
$share['file_path'] = $name;
$displayNameOwner = \OCP\User::getDisplayName($share['uid_owner']);
$displayNameShareWith = \OCP\User::getDisplayName($share['share_with']);
- $share['displayname_owner'] = ($displayNameOwner) ? $displayNameOwner : $share['uid_owner'];
- $share['share_with_displayname'] = ($displayNameShareWith) ? $displayNameShareWith : $share['uid_owner'];
+ $share['displayname_owner'] = $displayNameOwner ? $displayNameOwner : $share['uid_owner'];
+ $share['share_with_displayname'] = $displayNameShareWith ? $displayNameShareWith : $share['uid_owner'];
$result[] = $share;
}
@@ -72,7 +72,7 @@ class Folder extends File implements \OCP\Share_Backend_Collection {
$query = \OCP\DB::prepare('SELECT `parent` FROM `*PREFIX*filecache` WHERE `fileid` = ?');
$result = $query->execute(array($child));
$row = $result->fetchRow();
- $parent = ($row) ? $row['parent'] : null;
+ $parent = $row ? $row['parent'] : null;
return $parent;
}