mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +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);
|
||||
}
|
||||
}
|
||||
else if ($this->IsParameterized() && 0 < $this->oParameters->Count())
|
||||
else if ($this->IsParameterized() && 0 < $this->oParameters->count())
|
||||
{
|
||||
$sResult = $this->sValue.'; '.$this->oParameters->ToString(true);
|
||||
}
|
||||
else if ($this->IsEmail())
|
||||
{
|
||||
$oEmailCollection = new EmailCollection($this->sFullValue);
|
||||
if ($oEmailCollection && 0 < $oEmailCollection->Count())
|
||||
{
|
||||
if ($oEmailCollection && $oEmailCollection->count()) {
|
||||
$sResult = $oEmailCollection->ToString(true, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class HeaderCollection extends \MailSo\Base\Collection
|
|||
if (\strlen($sValue)) {
|
||||
$oResult = new EmailCollection($sValue);
|
||||
}
|
||||
return $oResult && 0 < $oResult->Count() ? $oResult : null;
|
||||
return $oResult && $oResult->count() ? $oResult : null;
|
||||
}
|
||||
|
||||
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
||||
|
|
|
|||
|
|
@ -504,7 +504,7 @@ class Manager
|
|||
return $this->bIsEnabled;
|
||||
}
|
||||
|
||||
public function Count() : int
|
||||
public function count() : int
|
||||
{
|
||||
return $this->bIsEnabled ? \count($this->aPlugins) : 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue