mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +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
|
|
@ -17,11 +17,6 @@ namespace MailSo\Base;
|
|||
*/
|
||||
class Http
|
||||
{
|
||||
public static function NewInstance() : self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* @staticvar \MailSo\Base\Http $oInstance;
|
||||
*/
|
||||
|
|
@ -30,7 +25,7 @@ class Http
|
|||
static $oInstance = null;
|
||||
if (null === $oInstance)
|
||||
{
|
||||
$oInstance = self::NewInstance();
|
||||
$oInstance = new self;
|
||||
}
|
||||
|
||||
return $oInstance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue