summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/principal.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-19 11:48:43 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-05 09:53:01 +0100
commitf2ddd565e843e7bccd24c10a45a30f9056bf24e3 (patch)
tree725075376dfaacbd94ebcec32535033cc2fbf7ed /lib/private/connector/sabre/principal.php
parentf2e759b53317a10c585c1dd123382f0f147af228 (diff)
downloadnextcloud-server-f2ddd565e843e7bccd24c10a45a30f9056bf24e3.tar.gz
nextcloud-server-f2ddd565e843e7bccd24c10a45a30f9056bf24e3.zip
Fix code-style
Diffstat (limited to 'lib/private/connector/sabre/principal.php')
-rw-r--r--lib/private/connector/sabre/principal.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/connector/sabre/principal.php b/lib/private/connector/sabre/principal.php
index 2bee83b1fcc..a5e026bbd36 100644
--- a/lib/private/connector/sabre/principal.php
+++ b/lib/private/connector/sabre/principal.php
@@ -33,7 +33,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
'{DAV:}displayname' => $user,
);
- $email= \OCP\Config::getUserValue($user, 'settings', 'email');
+ $email = \OCP\Config::getUserValue($user, 'settings', 'email');
if($email) {
$principal['{http://sabredav.org/ns}email-address'] = $email;
}
@@ -79,6 +79,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
*
* @param string $principal
* @return string[]
+ * @throws \Sabre\DAV\Exception
*/
public function getGroupMemberSet($principal) {
// TODO: for now the group principal has only one member, the user itself
@@ -97,6 +98,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
*
* @param string $principal
* @return array
+ * @throws \Sabre\DAV\Exception
*/
public function getGroupMembership($principal) {
list($prefix, $name) = \Sabre\DAV\URLUtil::splitPath($principal);
@@ -128,7 +130,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
*
* @param string $principal
* @param array $members
- * @return void
+ * @throws \Sabre\DAV\Exception
*/
public function setGroupMemberSet($principal, array $members) {
throw new \Sabre\DAV\Exception('Setting members of the group is not supported yet');