]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContact.php
Merge pull request #12238 from MrPetovan/task/refactor-dcontact
[friendica.git] / src / Worker / UpdateContact.php
index 67bc45ef982d229798a70bc572b57bfba33863c9..8de3629cafdca24ce8b0d04c60024dd46ff0b09b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -28,15 +28,14 @@ class UpdateContact
 {
        /**
         * Update contact data via probe
+        *
         * @param int    $contact_id Contact ID
-        * @param string $command
+        * @return void
         */
-       public static function execute($contact_id, $command = '')
+       public static function execute(int $contact_id)
        {
-               $force = ($command == "force");
+               $success = Contact::updateFromProbe($contact_id);
 
-               $success = Contact::updateFromProbe($contact_id, '', $force);
-
-               Logger::info('Updated from probe', ['id' => $contact_id, 'force' => $force, 'success' => $success]);
+               Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]);
        }
 }