aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/contacts.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-12-14 23:16:32 +0100
committerBart Visscher <bartv@thisnet.nl>2012-12-15 00:43:46 +0100
commit68562dafb4a814072aa0cd537b0d035f75e7a70f (patch)
tree58793c418d4d582c1d4d17fde74451e8232f39e8 /lib/public/contacts.php
parent2ef2dc4ddabc8b5d86d7a9a5a936ecf3901615cc (diff)
downloadnextcloud-server-68562dafb4a814072aa0cd537b0d035f75e7a70f.tar.gz
nextcloud-server-68562dafb4a814072aa0cd537b0d035f75e7a70f.zip
More whitespace fixes
Diffstat (limited to 'lib/public/contacts.php')
-rw-r--r--lib/public/contacts.php33
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php
index 4cf57ed8ff2..88d812e735a 100644
--- a/lib/public/contacts.php
+++ b/lib/public/contacts.php
@@ -54,29 +54,30 @@ namespace OCP {
* Example:
* Following function shows how to search for contacts for the name and the email address.
*
- * public static function getMatchingRecipient($term) {
- * // The API is not active -> nothing to do
+ * public static function getMatchingRecipient($term) {
+ * // The API is not active -> nothing to do
* if (!\OCP\Contacts::isEnabled()) {
- * return array();
+ * return array();
* }
*
* $result = \OCP\Contacts::search($term, array('FN', 'EMAIL'));
* $receivers = array();
* foreach ($result as $r) {
- * $id = $r['id'];
- * $fn = $r['FN'];
- * $email = $r['EMAIL'];
- * if (!is_array($email)) {
- * $email = array($email);
- * }
+ * $id = $r['id'];
+ * $fn = $r['FN'];
+ * $email = $r['EMAIL'];
+ * if (!is_array($email)) {
+ * $email = array($email);
+ * }
*
- * // loop through all email addresses of this contact
- * foreach ($email as $e) {
- * $displayName = $fn . " <$e>";
- * $receivers[] = array('id' => $id,
- * 'label' => $displayName,
- * 'value' => $displayName);
- * }
+ * // loop through all email addresses of this contact
+ * foreach ($email as $e) {
+ * $displayName = $fn . " <$e>";
+ * $receivers[] = array(
+ * 'id' => $id,
+ * 'label' => $displayName,
+ * 'value' => $displayName);
+ * }
* }
*
* return $receivers;