Fix code-style

This commit is contained in:
Lukas Reschke 2014-12-19 11:48:43 +01:00 committed by Morris Jobke
parent f2e759b533
commit f2ddd565e8
1 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\Bac
'{DAV:}displayname' => $user, '{DAV:}displayname' => $user,
); );
$email= \OCP\Config::getUserValue($user, 'settings', 'email'); $email = \OCP\Config::getUserValue($user, 'settings', 'email');
if($email) { if($email) {
$principal['{http://sabredav.org/ns}email-address'] = $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 * @param string $principal
* @return string[] * @return string[]
* @throws \Sabre\DAV\Exception
*/ */
public function getGroupMemberSet($principal) { public function getGroupMemberSet($principal) {
// TODO: for now the group principal has only one member, the user itself // 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 * @param string $principal
* @return array * @return array
* @throws \Sabre\DAV\Exception
*/ */
public function getGroupMembership($principal) { public function getGroupMembership($principal) {
list($prefix, $name) = \Sabre\DAV\URLUtil::splitPath($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 string $principal
* @param array $members * @param array $members
* @return void * @throws \Sabre\DAV\Exception
*/ */
public function setGroupMemberSet($principal, array $members) { public function setGroupMemberSet($principal, array $members) {
throw new \Sabre\DAV\Exception('Setting members of the group is not supported yet'); throw new \Sabre\DAV\Exception('Setting members of the group is not supported yet');