mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
Improve Factory variable names (#2895)
This commit is contained in:
@@ -503,9 +503,9 @@ EOD;
|
||||
//This function takes 2 requests, and therefore is cached
|
||||
private function getApiKey($forceNew = 0)
|
||||
{
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$r_cache = $cacheFac->create();
|
||||
$r_cache = $cacheFactory->create();
|
||||
$r_cache->setScope(get_called_class());
|
||||
$r_cache->setKey(['refresh']);
|
||||
$data = $r_cache->loadData();
|
||||
@@ -518,9 +518,9 @@ EOD;
|
||||
$refresh = $data;
|
||||
}
|
||||
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFac->create();
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey(['api_key']);
|
||||
$data = $cache->loadData();
|
||||
@@ -557,7 +557,7 @@ EOD;
|
||||
|
||||
$cacheFac2 = new CacheFactory();
|
||||
|
||||
$gt_cache = $cacheFac->create();
|
||||
$gt_cache = $cacheFactory->create();
|
||||
$gt_cache->setScope(get_called_class());
|
||||
$gt_cache->setKey(['guest_token']);
|
||||
$guestTokenUses = $gt_cache->loadData();
|
||||
|
Reference in New Issue
Block a user