mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 10:02:14 +02:00
Code style: explicit return value in getServerExt
This commit is contained in:
parent
72c1e32d5e
commit
ea31254c41
@ -1170,7 +1170,7 @@ class SMTP
|
|||||||
if (!$this->server_caps) {
|
if (!$this->server_caps) {
|
||||||
$this->setError('No HELO/EHLO was sent');
|
$this->setError('No HELO/EHLO was sent');
|
||||||
|
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!array_key_exists($name, $this->server_caps)) {
|
if (!array_key_exists($name, $this->server_caps)) {
|
||||||
@ -1182,7 +1182,7 @@ class SMTP
|
|||||||
}
|
}
|
||||||
$this->setError('HELO handshake was used; No information about server extensions available');
|
$this->setError('HELO handshake was used; No information about server extensions available');
|
||||||
|
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->server_caps[$name];
|
return $this->server_caps[$name];
|
||||||
|
Loading…
Reference in New Issue
Block a user