summaryrefslogtreecommitdiffstats
path: root/apps/contacts/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-02 05:02:36 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-02 05:02:36 +0200
commita1239a37aa51b5a31474a23dcf00a7532fcc4ea4 (patch)
tree455578e80059647fa26f576a72d1308be6d8dd78 /apps/contacts/lib
parent30c3a783d94aaa312909bc55778ca5c4a1e29e28 (diff)
downloadnextcloud-server-a1239a37aa51b5a31474a23dcf00a7532fcc4ea4.tar.gz
nextcloud-server-a1239a37aa51b5a31474a23dcf00a7532fcc4ea4.zip
Line length...
Diffstat (limited to 'apps/contacts/lib')
-rw-r--r--apps/contacts/lib/connector_sabre.php23
1 files changed, 17 insertions, 6 deletions
diff --git a/apps/contacts/lib/connector_sabre.php b/apps/contacts/lib/connector_sabre.php
index 9fcfff08fa8..2bc6c9a28ca 100644
--- a/apps/contacts/lib/connector_sabre.php
+++ b/apps/contacts/lib/connector_sabre.php
@@ -40,7 +40,8 @@ class OC_Connector_Sabre_CardDAV extends Sabre_CardDAV_Backend_Abstract {
'uri' => $i['uri'],
'principaluri' => 'principals/'.$i['userid'],
'{DAV:}displayname' => $i['displayname'],
- '{' . Sabre_CardDAV_Plugin::NS_CARDDAV . '}addressbook-description' => $i['description'],
+ '{' . Sabre_CardDAV_Plugin::NS_CARDDAV . '}addressbook-description'
+ => $i['description'],
'{http://calendarserver.org/ns/}getctag' => $i['ctag'],
);
}
@@ -69,7 +70,8 @@ class OC_Connector_Sabre_CardDAV extends Sabre_CardDAV_Backend_Abstract {
case '{DAV:}displayname' :
$name = $newvalue;
break;
- case '{' . Sabre_CardDAV_Plugin::NS_CARDDAV . '}addressbook-description' :
+ case '{' . Sabre_CardDAV_Plugin::NS_CARDDAV
+ . '}addressbook-description' :
$description = $newvalue;
break;
default :
@@ -104,16 +106,23 @@ class OC_Connector_Sabre_CardDAV extends Sabre_CardDAV_Backend_Abstract {
case '{DAV:}displayname' :
$displayname = $newvalue;
break;
- case '{' . Sabre_CardDAV_Plugin::NS_CARDDAV . '}addressbook-description' :
+ case '{' . Sabre_CardDAV_Plugin::NS_CARDDAV
+ . '}addressbook-description' :
$description = $newvalue;
break;
default :
- throw new Sabre_DAV_Exception_BadRequest('Unknown property: ' . $property);
+ throw new Sabre_DAV_Exception_BadRequest('Unknown property: '
+ . $property);
}
}
- OC_Contacts_Addressbook::addFromDAVData($principaluri, $url, $name, $description);
+ OC_Contacts_Addressbook::addFromDAVData(
+ $principaluri,
+ $url,
+ $name,
+ $description
+ );
}
/**
@@ -182,7 +191,9 @@ class OC_Connector_Sabre_CardDAV extends Sabre_CardDAV_Backend_Abstract {
* @return bool
*/
public function updateCard($addressbookid, $carduri, $carddata) {
- return OC_Contacts_VCard::editFromDAVData($addressbookid, $carduri, $carddata);
+ return OC_Contacts_VCard::editFromDAVData(
+ $addressbookid, $carduri, $carddata
+ );
}
/**