Code refactoring

This commit is contained in:
RainLoop Team 2014-07-30 20:01:02 +04:00
parent 58d8e92902
commit 1de1ecc9c4
4 changed files with 220 additions and 127 deletions

View file

@ -14,6 +14,16 @@ class KeyPathHelper
return 'TwoFactorAuth/User/'.$sEmail.'/Data/';
}
/**
* @param string $sEmail
*
* @return string
*/
static public function WebmailAccounts($sEmail)
{
return 'Webmail/Accounts/'.$sEmail.'/Array';
}
/**
* @param string $sSsoHash
*
@ -44,16 +54,6 @@ class KeyPathHelper
return '/SignMe/UserToken/'.$sSignMeToken;
}
/**
* @param string $sEmail
*
* @return string
*/
static public function WebmailAccounts($sEmail)
{
return 'Webmail/Accounts/'.$sEmail.'/Array';
}
/**
* @param string $sDomain
*
@ -61,7 +61,7 @@ class KeyPathHelper
*/
static public function LicensingDomainKeyValue($sDomain)
{
return 'Licensing/DomainKey/Value/'.$sDomain;
return '/Licensing/DomainKey/Value/'.$sDomain;
}
/**
@ -72,7 +72,7 @@ class KeyPathHelper
*/
static public function RepositoryCacheFile($sRepo, $sRepoFile)
{
return 'RepositoryCache/Repo/'.$sRepo.'/File/'.$sRepoFile;
return '/RepositoryCache/Repo/'.$sRepo.'/File/'.$sRepoFile;
}
/**
@ -82,7 +82,7 @@ class KeyPathHelper
*/
static public function RepositoryCacheCore($sRepo)
{
return 'RepositoryCache/CoreRepo/'.$sRepo;
return '/RepositoryCache/CoreRepo/'.$sRepo;
}
/**