mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-18 05:42:41 +09:00
Update to laravel 7
This commit is contained in:
@@ -18,18 +18,6 @@ class RateLimit extends AbstractApi
|
||||
*/
|
||||
protected $resources = [];
|
||||
|
||||
/**
|
||||
* Get rate limits data in an array.
|
||||
*
|
||||
* @deprecated since 2.11.0 Use `->getResources()` instead
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getRateLimits()
|
||||
{
|
||||
return $this->fetchLimits();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the rate limit resource objects.
|
||||
*
|
||||
@@ -79,28 +67,4 @@ class RateLimit extends AbstractApi
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get core rate limit.
|
||||
*
|
||||
* @deprecated since 2.11.0 Use `->getResource('core')->getLimit()` instead
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getCoreLimit()
|
||||
{
|
||||
return $this->getResource('core')->getLimit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get search rate limit.
|
||||
*
|
||||
* @deprecated since 2.11.0 Use `->getResource('core')->getLimit()` instead
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSearchLimit()
|
||||
{
|
||||
return $this->getResource('search')->getLimit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user