diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-08-24 13:49:56 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-08-24 13:49:56 +0200 |
commit | d1421ca5ab089d211b594d868d711a6f03527f91 (patch) | |
tree | ec99c455e93e4f70443eb748edf5e1d5b783595f /apps | |
parent | b716296203cd1ece8a455c2384ffed9c0d5f6f41 (diff) | |
download | nextcloud-server-d1421ca5ab089d211b594d868d711a6f03527f91.tar.gz nextcloud-server-d1421ca5ab089d211b594d868d711a6f03527f91.zip |
White-space.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/contacts/lib/sabre/addressbook.php | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/apps/contacts/lib/sabre/addressbook.php b/apps/contacts/lib/sabre/addressbook.php index daaaa943398..e9eb77472b6 100644 --- a/apps/contacts/lib/sabre/addressbook.php +++ b/apps/contacts/lib/sabre/addressbook.php @@ -29,26 +29,29 @@ */ class OC_Connector_Sabre_CardDAV_AddressBook extends Sabre_CardDAV_AddressBook { - /** - * CardDAV backend - * - * @var Sabre_CardDAV_Backend_Abstract - */ - private $carddavBackend; - - /** - * Constructor - * - * @param Sabre_CardDAV_Backend_Abstract $carddavBackend - * @param array $addressBookInfo - */ - public function __construct(Sabre_CardDAV_Backend_Abstract $carddavBackend, array $addressBookInfo) { - - $this->carddavBackend = $carddavBackend; - $this->addressBookInfo = $addressBookInfo; + /** + * CardDAV backend + * + * @var Sabre_CardDAV_Backend_Abstract + */ + private $carddavBackend; + + /** + * Constructor + * + * @param Sabre_CardDAV_Backend_Abstract $carddavBackend + * @param array $addressBookInfo + */ + public function __construct( + Sabre_CardDAV_Backend_Abstract $carddavBackend, + array $addressBookInfo) { + + $this->carddavBackend = $carddavBackend; + $this->addressBookInfo = $addressBookInfo; parent::__construct($carddavBackend, $addressBookInfo); - } + } + /** * Returns a list of ACE's for this node. * @@ -93,19 +96,19 @@ class OC_Connector_Sabre_CardDAV_AddressBook extends Sabre_CardDAV_AddressBook { } - /** - * Returns a card - * - * @param string $name - * @return OC_Connector_Sabre_DAV_Card - */ - public function getChild($name) { + /** + * Returns a card + * + * @param string $name + * @return OC_Connector_Sabre_DAV_Card + */ + public function getChild($name) { - $obj = $this->carddavBackend->getCard($this->addressBookInfo['id'],$name); - if (!$obj) throw new Sabre_DAV_Exception_NotFound('Card not found'); - return new OC_Connector_Sabre_CardDAV_Card($this->carddavBackend,$this->addressBookInfo,$obj); + $obj = $this->carddavBackend->getCard($this->addressBookInfo['id'],$name); + if (!$obj) throw new Sabre_DAV_Exception_NotFound('Card not found'); + return new OC_Connector_Sabre_CardDAV_Card($this->carddavBackend,$this->addressBookInfo,$obj); - } + } /** * Returns the full list of cards |