1
0
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:
Jan Tojnar
2022-07-06 12:14:04 +02:00
committed by GitHub
parent e3dad86bca
commit d107f8ed30
18 changed files with 59 additions and 59 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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']);
}

View File

@@ -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']);

View File

@@ -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();