Small refactor #hacktoberfest (#1859)

This commit is contained in:
Mikhail Fesenko 2019-10-08 08:56:10 +03:00 committed by Marcus Bointon
parent 8fceec772a
commit 7480e75c70
2 changed files with 5 additions and 4 deletions

View File

@ -1958,7 +1958,7 @@ class PHPMailer
trim($hostentry),
$hostinfo
)) {
static::edebug($this->lang('connect_host') . ' ' . $hostentry);
$this->edebug($this->lang('connect_host') . ' ' . $hostentry);
// Not a valid host entry
continue;
}
@ -1970,7 +1970,7 @@ class PHPMailer
//Check the host name is a valid name or IP address before trying to use it
if (!static::isValidHost($hostinfo[3])) {
static::edebug($this->lang('connect_host') . ' ' . $hostentry);
$this->edebug($this->lang('connect_host') . ' ' . $hostentry);
continue;
}
$prefix = '';
@ -3308,6 +3308,7 @@ class PHPMailer
// Base64 has a 4:3 ratio
$avgLength = floor($length * $ratio * .75);
$offset = 0;
for ($i = 0; $i < $mb_length; $i += $offset) {
$lookBack = 0;
do {
@ -3582,7 +3583,7 @@ class PHPMailer
/**
* Validate encodings.
*
* @param $encoding
* @param string $encoding
*
* @return bool
*/

View File

@ -480,7 +480,7 @@ class SMTP
return false;
}
self::edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL);
$this->edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL);
}
if (!in_array($authtype, $this->server_caps['AUTH'])) {