Changes after code review

This commit is contained in:
Michael 2022-08-03 04:31:56 +00:00
parent f2eec66240
commit 23ef4a99bb

View file

@ -85,7 +85,7 @@ class Queue
} }
/** /**
* Checks if an entryy for a given url and type already exists * Checks if an entry for a given url and type already exists
* *
* @param string $url * @param string $url
* @param string $type * @param string $type
@ -144,16 +144,16 @@ class Queue
/** /**
* Set the worker id for the queue entry * Set the worker id for the queue entry
* *
* @param int $entryid * @param int $entry_id
* @param int $wid * @param int $wid
* @return void * @return void
*/ */
public static function setWorkerId(int $entryid, int $wid) public static function setWorkerId(int $entry_id, int $wid)
{ {
if (empty($entryid) || empty($wid)) { if (empty($entry_id) || empty($wid)) {
return; return;
} }
DBA::update('inbox-entry', ['wid' => $wid], ['id' => $entryid]); DBA::update('inbox-entry', ['wid' => $wid], ['id' => $entry_id]);
} }
/** /**