mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Remove unused NameWithDelimitrom()
This commit is contained in:
parent
91595ef6d5
commit
3a37aad25f
1 changed files with 3 additions and 7 deletions
|
|
@ -86,11 +86,6 @@ class Header implements \JsonSerializable
|
|||
return $this->sName;
|
||||
}
|
||||
|
||||
public function NameWithDelimitrom() : string
|
||||
{
|
||||
return $this->sName . ': ';
|
||||
}
|
||||
|
||||
public function Value() : string
|
||||
{
|
||||
return $this->sValue;
|
||||
|
|
@ -160,7 +155,8 @@ class Header implements \JsonSerializable
|
|||
}
|
||||
|
||||
// https://www.rfc-editor.org/rfc/rfc2822#section-2.1.1, avoid folding immediately after the header name
|
||||
return $this->NameWithDelimitrom() . \wordwrap($sResult, 78 - \strlen($this->NameWithDelimitrom()) - 1, "\r\n ");
|
||||
$sName = $this->sName . ': ';
|
||||
return $sName . \wordwrap($sResult, 78 - \strlen($sName) - 1, "\r\n ");
|
||||
}
|
||||
|
||||
private function IsSubject() : bool
|
||||
|
|
@ -207,7 +203,7 @@ class Header implements \JsonSerializable
|
|||
$aResult = array(
|
||||
'@Object' => 'Object/MimeHeader',
|
||||
'name' => $this->sName,
|
||||
'value' => $this->sValue
|
||||
'value' => $this->sValue // $this->EncodedValue()
|
||||
);
|
||||
if ($this->oParameters->count()) {
|
||||
$aResult['parameters'] = $this->oParameters;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue