diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-25 23:16:13 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-29 12:03:47 +0100 |
commit | eb51f06a3b9e42686f462b9f7a56411d3fe6cb27 (patch) | |
tree | 0d96c86c4489b4e3fe60bcceaeb6759d856a36e9 /lib/private/Share | |
parent | 1d8b90b8d3c8a85104d223b7f1d5693280370774 (diff) | |
download | nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.tar.gz nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.zip |
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Share')
-rw-r--r-- | lib/private/Share/Share.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 465446c52b7..9507eaf5c1f 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -849,11 +849,11 @@ class Share extends Constants { $hookParams['fileTarget'] = $item['file_target']; } - \OC_Hook::emit('OCP\Share', 'pre_unshare', $hookParams); + \OC_Hook::emit(\OCP\Share::class, 'pre_unshare', $hookParams); $deletedShares = Helper::delete($item['id'], false, null, $newParent); $deletedShares[] = $hookParams; $hookParams['deletedShares'] = $deletedShares; - \OC_Hook::emit('OCP\Share', 'post_unshare', $hookParams); + \OC_Hook::emit(\OCP\Share::class, 'post_unshare', $hookParams); if ((int)$item['share_type'] === \OCP\Share::SHARE_TYPE_REMOTE && \OC::$server->getUserSession()->getUser()) { list(, $remote) = Helper::splitUserRemote($item['share_with']); self::sendRemoteUnshare($remote, $item['id'], $item['token']); @@ -1549,7 +1549,7 @@ class Share extends Constants { $preHookData['itemTarget'] = $isGroupShare ? $groupItemTarget : $itemTarget; $preHookData['shareWith'] = $isGroupShare ? $shareWith['group'] : $shareWith; - \OC_Hook::emit('OCP\Share', 'pre_shared', $preHookData); + \OC_Hook::emit(\OCP\Share::class, 'pre_shared', $preHookData); if ($run === false) { throw new \Exception($error); @@ -1663,7 +1663,7 @@ class Share extends Constants { $postHookData['itemTarget'] = $isGroupShare ? $groupItemTarget : $itemTarget; $postHookData['fileTarget'] = $isGroupShare ? $groupFileTarget : $fileTarget; - \OC_Hook::emit('OCP\Share', 'post_shared', $postHookData); + \OC_Hook::emit(\OCP\Share::class, 'post_shared', $postHookData); return $id ? $id : false; @@ -2037,7 +2037,7 @@ class Share extends Constants { $status = json_decode($result['result'], true); if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { - \OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); + \OC_Hook::emit(\OCP\Share::class, 'federated_share_added', ['server' => $remote]); return true; } |