* @param array $urls
* @return array result "count", "added" and "updated"
*/
- public static function addContactsByArray(array $urls)
+ public static function addByUrls(array $urls)
{
$added = 0;
$updated = 0;
return;
}
- $result = Contact::addContactsByArray($contacts['results']);
+ $result = Contact::addByUrls($contacts['results']);
$now = $contacts['now'] ?? 0;
DI::config()->set('system', 'last-directory-sync', $now);
}
}
- $result = Contact::addContactsByArray($urls);
+ $result = Contact::addByUrls($urls);
Logger::info('PoCo discovery ended', ['count' => $result['count'], 'added' => $result['added'], 'updated' => $result['updated'], 'poco' => $gserver['poco']]);
}
}
}
- $result = Contact::addContactsByArray($urls);
+ $result = Contact::addByUrls($urls);
Logger::info('Account discovery ended', ['count' => $result['count'], 'added' => $result['added'], 'updated' => $result['updated'], 'url' => $gserver['url']]);
}