mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Count() to count()
This commit is contained in:
parent
f5beeb9ca1
commit
d126380282
3 changed files with 4 additions and 5 deletions
|
|
@ -182,15 +182,14 @@ class Header
|
||||||
return \iconv_mime_encode($this->Name(), $sResult, $aPreferences);
|
return \iconv_mime_encode($this->Name(), $sResult, $aPreferences);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($this->IsParameterized() && 0 < $this->oParameters->Count())
|
else if ($this->IsParameterized() && 0 < $this->oParameters->count())
|
||||||
{
|
{
|
||||||
$sResult = $this->sValue.'; '.$this->oParameters->ToString(true);
|
$sResult = $this->sValue.'; '.$this->oParameters->ToString(true);
|
||||||
}
|
}
|
||||||
else if ($this->IsEmail())
|
else if ($this->IsEmail())
|
||||||
{
|
{
|
||||||
$oEmailCollection = new EmailCollection($this->sFullValue);
|
$oEmailCollection = new EmailCollection($this->sFullValue);
|
||||||
if ($oEmailCollection && 0 < $oEmailCollection->Count())
|
if ($oEmailCollection && $oEmailCollection->count()) {
|
||||||
{
|
|
||||||
$sResult = $oEmailCollection->ToString(true, false);
|
$sResult = $oEmailCollection->ToString(true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ class HeaderCollection extends \MailSo\Base\Collection
|
||||||
if (\strlen($sValue)) {
|
if (\strlen($sValue)) {
|
||||||
$oResult = new EmailCollection($sValue);
|
$oResult = new EmailCollection($sValue);
|
||||||
}
|
}
|
||||||
return $oResult && 0 < $oResult->Count() ? $oResult : null;
|
return $oResult && $oResult->count() ? $oResult : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
||||||
|
|
|
||||||
|
|
@ -504,7 +504,7 @@ class Manager
|
||||||
return $this->bIsEnabled;
|
return $this->bIsEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Count() : int
|
public function count() : int
|
||||||
{
|
{
|
||||||
return $this->bIsEnabled ? \count($this->aPlugins) : 0;
|
return $this->bIsEnabled ? \count($this->aPlugins) : 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue