mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Remove useless NewInstance
Bugfix: BodyStructure->SearchCharset return value
This commit is contained in:
parent
82e560bc53
commit
693e0f4c10
61 changed files with 802 additions and 1345 deletions
|
|
@ -28,7 +28,7 @@ class File implements \MailSo\Cache\DriverInterface
|
|||
*/
|
||||
private $sKeyPrefix;
|
||||
|
||||
private function __construct(string $sCacheFolder, string $sKeyPrefix = '')
|
||||
function __construct(string $sCacheFolder, string $sKeyPrefix = '')
|
||||
{
|
||||
$this->sCacheFolder = $sCacheFolder;
|
||||
$this->sCacheFolder = rtrim(trim($this->sCacheFolder), '\\/').'/';
|
||||
|
|
@ -45,11 +45,6 @@ class File implements \MailSo\Cache\DriverInterface
|
|||
}
|
||||
}
|
||||
|
||||
public static function NewInstance(string $sCacheFolder, string $sKeyPrefix = '') : self
|
||||
{
|
||||
return new self($sCacheFolder, $sKeyPrefix);
|
||||
}
|
||||
|
||||
public function Set(string $sKey, string $sValue) : bool
|
||||
{
|
||||
$sPath = $this->generateCachedFileName($sKey, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue