mirror of
https://github.com/zeropingheroes/lancache-autofill
synced 2025-02-16 21:58:26 +00:00
Adding missing docblocks
This commit is contained in:
parent
de26d0eef2
commit
63896e2325
2 changed files with 29 additions and 0 deletions
|
@ -51,6 +51,12 @@ class ShowQueue extends Command
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display apps in the queue for a given status
|
||||
*
|
||||
* @param $status string
|
||||
* @return void
|
||||
*/
|
||||
private function displayAppsWithStatus($status)
|
||||
{
|
||||
switch ($status) {
|
||||
|
|
|
@ -112,6 +112,11 @@ class StartDownloading extends Command
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the next app in the queue
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
private function nextApp()
|
||||
{
|
||||
return Capsule::table('steam_queue')
|
||||
|
@ -119,6 +124,14 @@ class StartDownloading extends Command
|
|||
->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an item's status in the queue
|
||||
*
|
||||
* @param $id
|
||||
* @param $status
|
||||
* @param null $message
|
||||
* @return int
|
||||
*/
|
||||
private function updateQueueItemStatus($id, $status, $message = null)
|
||||
{
|
||||
return Capsule::table('steam_queue')
|
||||
|
@ -126,6 +139,11 @@ class StartDownloading extends Command
|
|||
->update(['status' => $status, 'message' => $message]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get total number of items in queue
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
private function queuedItems()
|
||||
{
|
||||
return Capsule::table('steam_queue')
|
||||
|
@ -133,6 +151,11 @@ class StartDownloading extends Command
|
|||
->count();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get collection of accounts specified to download apps
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
private function accountsInQueue()
|
||||
{
|
||||
return Capsule::table('steam_queue')
|
||||
|
|
Loading…
Add table
Reference in a new issue