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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 59 additions and 59 deletions

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