mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +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
|
|
@ -24,7 +24,7 @@ class Template
|
|||
*/
|
||||
private $bPopulateAlways;
|
||||
|
||||
protected function __construct(string $sId = '', string $sName = '', string $sBody = '')
|
||||
function __construct(string $sId = '', string $sName = '', string $sBody = '')
|
||||
{
|
||||
$this->sId = $sId;
|
||||
$this->sName = $sName;
|
||||
|
|
@ -32,11 +32,6 @@ class Template
|
|||
$this->bPopulateAlways = false;
|
||||
}
|
||||
|
||||
public static function NewInstance(string $sId = '', string $sName = '', string $sBody = '') : self
|
||||
{
|
||||
return new self($sId, $sName, $sBody);
|
||||
}
|
||||
|
||||
public function Id() : string
|
||||
{
|
||||
return $this->sId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue