More PHP7 strict typing

This commit is contained in:
djmaze 2020-03-11 11:49:45 +01:00
parent 3a7ec4ecb0
commit e8d38a6870
6 changed files with 13 additions and 30 deletions

View file

@ -47,10 +47,7 @@ class Utils
\RainLoop\Utils::$RsaKey = \is_string(\RainLoop\Utils::$RsaKey) ? \RainLoop\Utils::$RsaKey : '';
}
/**
* @return string|false
*/
static public function EncryptStringRSA(string $sString, string $sKey = '')
static public function EncryptStringRSA(string $sString, string $sKey = '') : string
{
$sResult = '';
$sKey = \md5($sKey);
@ -87,10 +84,7 @@ class Utils
return $sResult;
}
/**
* @return string|false
*/
static public function DecryptStringRSA(string $sString, string $sKey = '')
static public function DecryptStringRSA(string $sString, string $sKey = '') : string
{
$sResult = '';
$sKey = \md5($sKey);
@ -425,6 +419,7 @@ class Utils
$sAppPath = '';
return $sAppPath;
}
public static function WebVersionPath() : string
{
return self::WebPath().'rainloop/v/'.APP_VERSION.'/';