mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Code refactoring
This commit is contained in:
parent
58d8e92902
commit
1de1ecc9c4
4 changed files with 220 additions and 127 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue