Count() to count()

This commit is contained in:
the-djmaze 2022-12-18 13:55:37 +01:00
parent f5beeb9ca1
commit d126380282
3 changed files with 4 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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

View file

@ -504,7 +504,7 @@ class Manager
return $this->bIsEnabled;
}
public function Count() : int
public function count() : int
{
return $this->bIsEnabled ? \count($this->aPlugins) : 0;
}