From 65c213ae709588e4a1144ba6716c3a013746612c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20B?= Date: Wed, 14 Oct 2015 22:33:01 +0200 Subject: [PATCH] Fix comments, suggested by scrutinizer --- class.phpmailer.php | 2 +- class.phpmaileroauth.php | 4 ++-- class.phpmaileroauthgoogle.php | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/class.phpmailer.php b/class.phpmailer.php index dd3f6fc07..2f3867082 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -3138,7 +3138,7 @@ public function msgHTML($message, $basedir = '', $advanced = false) } } elseif (substr($url, 0, 4) !== 'cid:' && !preg_match('#^[A-z]+://#', $url)) { // Do not change urls for absolute images (thanks to corvuscorax) - // Do not change urls that are already inline images + // Do not change urls that are already inline images $filename = basename($url); $directory = dirname($url); if ($directory == '.') { diff --git a/class.phpmaileroauth.php b/class.phpmaileroauth.php index 7cc9328e5..1a888c189 100644 --- a/class.phpmaileroauth.php +++ b/class.phpmaileroauth.php @@ -57,8 +57,8 @@ class PHPMailerOAuth extends PHPMailer protected $oauth = null; /** - * Get an OAuth instance to use. - * @return OAuth + * Get a PHPMailerOAuthGoogle instance to use. + * @return PHPMailerOAuthGoogle */ public function getOAUTHInstance() { diff --git a/class.phpmaileroauthgoogle.php b/class.phpmaileroauthgoogle.php index a0fa8cf2e..ab6292b82 100644 --- a/class.phpmaileroauthgoogle.php +++ b/class.phpmaileroauthgoogle.php @@ -31,6 +31,12 @@ class PHPMailerOAuthGoogle private $oauthClientId = ''; private $oauthClientSecret = ''; + /** + * @param string $UserEmail + * @param string $ClientSecret + * @param string $ClientId + * @param string $RefreshToken + */ public function __construct( $UserEmail, $ClientSecret,