mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 19:09:56 +02:00
Improve Factory variable names (#2895)
This commit is contained in:
@@ -113,9 +113,9 @@ class ElloBridge extends BridgeAbstract
|
||||
|
||||
private function getAPIKey()
|
||||
{
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFac->create();
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey(['key']);
|
||||
$key = $cache->loadData();
|
||||
|
@@ -94,9 +94,9 @@ class InstagramBridge extends BridgeAbstract
|
||||
return $username;
|
||||
}
|
||||
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFac->create();
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey([$username]);
|
||||
$key = $cache->loadData();
|
||||
|
@@ -122,9 +122,9 @@ HTML;
|
||||
return;
|
||||
}
|
||||
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$this->clientIDCache = $cacheFac->create();
|
||||
$this->clientIDCache = $cacheFactory->create();
|
||||
$this->clientIDCache->setScope(get_called_class());
|
||||
$this->clientIDCache->setKey(['client_id']);
|
||||
}
|
||||
|
@@ -100,9 +100,9 @@ class SpotifyBridge extends BridgeAbstract
|
||||
|
||||
private function getToken()
|
||||
{
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFac->create();
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey(['token']);
|
||||
|
||||
|
@@ -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