mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Changes:
- added some type-hints - added documentation
This commit is contained in:
parent
39675fe683
commit
88870d18be
6 changed files with 36 additions and 14 deletions
|
@ -41,11 +41,11 @@ use Friendica\Util\Strings;
|
|||
|
||||
class OnePoll
|
||||
{
|
||||
public static function execute($contact_id = 0, $command = '')
|
||||
public static function execute(int $contact_id = 0, string $command = '')
|
||||
{
|
||||
Logger::notice('Start polling/probing contact', ['id' => $contact_id]);
|
||||
|
||||
$force = ($command == "force");
|
||||
$force = ($command == 'force');
|
||||
|
||||
if (empty($contact_id)) {
|
||||
Logger::notice('no contact provided');
|
||||
|
@ -118,6 +118,7 @@ class OnePoll
|
|||
*
|
||||
* @param array $contact The personal contact entry
|
||||
* @param array $fields The fields that are updated
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
*/
|
||||
private static function updateContact(array $contact, array $fields)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue