mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37: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
|
|
@ -23,7 +23,7 @@ class APC implements \MailSo\Cache\DriverInterface
|
|||
*/
|
||||
private $sKeyPrefix;
|
||||
|
||||
private function __construct(string $sKeyPrefix = '')
|
||||
function __construct(string $sKeyPrefix = '')
|
||||
{
|
||||
$this->sKeyPrefix = $sKeyPrefix;
|
||||
if (!empty($this->sKeyPrefix))
|
||||
|
|
@ -33,11 +33,6 @@ class APC implements \MailSo\Cache\DriverInterface
|
|||
}
|
||||
}
|
||||
|
||||
public static function NewInstance(string $sKeyPrefix = '') : self
|
||||
{
|
||||
return new self($sKeyPrefix);
|
||||
}
|
||||
|
||||
public function Set(string $sKey, string $sValue) : bool
|
||||
{
|
||||
return \apc_store($this->generateCachedKey($sKey), (string) $sValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue