Completed
Branch master (0c108a)
by Wanderson
02:31
created
lib/vendor/phpmailer/class.phpmailer.php 3 patches
Doc Comments   +15 added lines, -3 removed lines patch added patch discarded remove patch
@@ -890,6 +890,7 @@  discard block
 block discarded – undo
890 890
 	/**
891 891
 	 * Creates recipient headers.
892 892
 	 * @access public
893
+	 * @param string $type
893 894
 	 * @return string
894 895
 	 */
895 896
 	public function AddrAppend($type, $addr) {
@@ -1256,6 +1257,9 @@  discard block
 block discarded – undo
1256 1257
 	/**
1257 1258
 	 * Returns the start of a message boundary.
1258 1259
 	 * @access private
1260
+	 * @param string $charSet
1261
+	 * @param string $contentType
1262
+	 * @param string $encoding
1259 1263
 	 */
1260 1264
 	private function GetBoundary($boundary, $charSet, $contentType, $encoding) {
1261 1265
 		$result = '';
@@ -1309,6 +1313,7 @@  discard block
 block discarded – undo
1309 1313
 	/**
1310 1314
 	 * Returns a formatted header line.
1311 1315
 	 * @access public
1316
+	 * @param string $name
1312 1317
 	 * @return string
1313 1318
 	 */
1314 1319
 	public function HeaderLine($name, $value) {
@@ -1318,6 +1323,7 @@  discard block
 block discarded – undo
1318 1323
 	/**
1319 1324
 	 * Returns a formatted mail line.
1320 1325
 	 * @access public
1326
+	 * @param string $value
1321 1327
 	 * @return string
1322 1328
 	 */
1323 1329
 	public function TextLine($value) {
@@ -1521,6 +1527,7 @@  discard block
 block discarded – undo
1521 1527
 	/**
1522 1528
 	 * Encode a header string to best (shortest) of Q, B, quoted or none.
1523 1529
 	 * @access public
1530
+	 * @param string $str
1524 1531
 	 * @return string
1525 1532
 	 */
1526 1533
 	public function EncodeHeader($str, $position = 'text') {
@@ -1635,7 +1642,6 @@  discard block
 block discarded – undo
1635 1642
 	 * Encode string to quoted-printable.
1636 1643
 	 * Only uses standard PHP, slow, but will always work
1637 1644
 	 * @access public
1638
-	 * @param string $string the text to encode
1639 1645
 	 * @param integer $line_max Number of chars allowed on a line before wrapping
1640 1646
 	 * @return string
1641 1647
 	 */
@@ -1904,6 +1910,7 @@  discard block
 block discarded – undo
1904 1910
 	/**
1905 1911
 	 * Adds the error message to the error container.
1906 1912
 	 * @access protected
1913
+	 * @param string $msg
1907 1914
 	 * @return void
1908 1915
 	 */
1909 1916
 	protected function SetError($msg) {
@@ -1953,6 +1960,7 @@  discard block
 block discarded – undo
1953 1960
 	/**
1954 1961
 	 * Returns a message in the appropriate language.
1955 1962
 	 * @access private
1963
+	 * @param string $key
1956 1964
 	 * @return string
1957 1965
 	 */
1958 1966
 	private function Lang($key) {
@@ -1979,6 +1987,7 @@  discard block
 block discarded – undo
1979 1987
 	/**
1980 1988
 	 * Changes every end of line from CR or LF to CRLF.
1981 1989
 	 * @access private
1990
+	 * @param string $str
1982 1991
 	 * @return string
1983 1992
 	 */
1984 1993
 	private function FixEOL($str) {
@@ -2194,8 +2203,6 @@  discard block
 block discarded – undo
2194 2203
 	 * Set the private key file and password to sign the message.
2195 2204
 	 *
2196 2205
 	 * @access public
2197
-	 * @param string $key_filename Parameter File Name
2198
-	 * @param string $key_pass Password for private key
2199 2206
 	 */
2200 2207
 	public function DKIM_QP($txt) {
2201 2208
 		$tmp = "";
@@ -2310,6 +2317,11 @@  discard block
 block discarded – undo
2310 2317
 		return "X-PHPMAILER-DKIM: phpmailer.worxware.com\r\n" . $dkimhdrs . $signed . "\r\n";
2311 2318
 	}
2312 2319
 
2320
+	/**
2321
+	 * @param integer $isSent
2322
+	 * @param string $subject
2323
+	 * @param string $body
2324
+	 */
2313 2325
 	protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body) {
2314 2326
 		if (!empty($this->action_function) && function_exists($this->action_function)) {
2315 2327
 			$params = array($isSent, $to, $cc, $bcc, $subject, $body);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
 			$buf = '';
946 946
 			for ($e = 0; $e < count($line_part); $e++) {
947 947
 				$word = $line_part[$e];
948
-				if ($qp_mode and ( strlen($word) > $length)) {
948
+				if ($qp_mode and (strlen($word) > $length)) {
949 949
 					$space_left = $length - strlen($buf) - 1;
950 950
 					if ($e != 0) {
951 951
 						if ($space_left > 20) {
@@ -1023,8 +1023,7 @@  discard block
 block discarded – undo
1023 1023
 				if ($dec < 128) { // Single byte character.
1024 1024
 					// If the encoded char was found at pos 0, it will fit
1025 1025
 					// otherwise reduce maxLength to start of the encoded char
1026
-					$maxLength = ($encodedCharPos == 0) ? $maxLength :
1027
-							$maxLength - ($lookBack - $encodedCharPos);
1026
+					$maxLength = ($encodedCharPos == 0) ? $maxLength : $maxLength - ($lookBack - $encodedCharPos);
1028 1027
 					$foundSplitPos = true;
1029 1028
 				} elseif ($dec >= 192) { // First byte of a multi byte character
1030 1029
 					// Reduce maxLength to split at start of character
@@ -1651,16 +1650,16 @@  discard block
 block discarded – undo
1651 1650
 			for ($i = 0; $i < $linlen; $i++) {
1652 1651
 				$c = substr($line, $i, 1);
1653 1652
 				$dec = ord($c);
1654
-				if (( $i == 0 ) && ( $dec == 46 )) { // convert first point in the line into =2E
1653
+				if (($i == 0) && ($dec == 46)) { // convert first point in the line into =2E
1655 1654
 					$c = '=2E';
1656 1655
 				}
1657 1656
 				if ($dec == 32) {
1658
-					if ($i == ( $linlen - 1 )) { // convert space at eol only
1657
+					if ($i == ($linlen - 1)) { // convert space at eol only
1659 1658
 						$c = '=20';
1660 1659
 					} else if ($space_conv) {
1661 1660
 						$c = '=20';
1662 1661
 					}
1663
-				} elseif (($dec == 61) || ($dec < 32 ) || ($dec > 126)) { // always encode "\t", which is *not* required
1662
+				} elseif (($dec == 61) || ($dec < 32) || ($dec > 126)) { // always encode "\t", which is *not* required
1664 1663
 					$h2 = floor($dec / 16);
1665 1664
 					$h1 = floor($dec % 16);
1666 1665
 					$c = $escape . $hex[$h2] . $hex[$h1];
@@ -1908,7 +1907,7 @@  discard block
 block discarded – undo
1908 1907
 	 */
1909 1908
 	protected function SetError($msg) {
1910 1909
 		$this->error_count++;
1911
-		if ($this->Mailer == 'smtp' and ! is_null($this->smtp)) {
1910
+		if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
1912 1911
 			$lasterror = $this->smtp->getError();
1913 1912
 			if (!empty($lasterror) and array_key_exists('smtp_msg', $lasterror)) {
1914 1913
 				$msg .= '<p>' . $this->Lang('smtp_error') . $lasterror['smtp_msg'] . "</p>\n";
@@ -2203,9 +2202,9 @@  discard block
 block discarded – undo
2203 2202
 		for ($i = 0; $i < strlen($txt); $i++) {
2204 2203
 			$ord = ord($txt[$i]);
2205 2204
 			if (((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E))) {
2206
-				$line.=$txt[$i];
2205
+				$line .= $txt[$i];
2207 2206
 			} else {
2208
-				$line.="=" . sprintf("%02X", $ord);
2207
+				$line .= "=" . sprintf("%02X", $ord);
2209 2208
 			}
2210 2209
 		}
2211 2210
 		return $line;
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,8 +38,9 @@  discard block
 block discarded – undo
38 38
  * @version $Id: class.phpmailer.php 447 2009-05-25 01:36:38Z codeworxtech $
39 39
  * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
40 40
  */
41
-if (version_compare(PHP_VERSION, '5.0.0', '<'))
42
-	exit("Sorry, this version of PHPMailer will only run on PHP version 5 or greater!\n");
41
+if (version_compare(PHP_VERSION, '5.0.0', '<')) {
42
+	exit("Sorry, this version of PHPMailer will only run on PHP version 5 or greater!\n");
43
+}
43 44
 
44 45
 class PHPMailer {
45 46
 	/////////////////////////////////////////////////
@@ -1502,8 +1503,9 @@  discard block
 block discarded – undo
1502 1503
 			case '8bit':
1503 1504
 				$encoded = $this->FixEOL($str);
1504 1505
 				//Make sure it ends with a line break
1505
-				if (substr($encoded, -(strlen($this->LE))) != $this->LE)
1506
-					$encoded .= $this->LE;
1506
+				if (substr($encoded, -(strlen($this->LE))) != $this->LE) {
1507
+									$encoded .= $this->LE;
1508
+				}
1507 1509
 				break;
1508 1510
 			case 'binary':
1509 1511
 				$encoded = $str;
@@ -2255,8 +2257,9 @@  discard block
 block discarded – undo
2255 2257
 	 * @param string $body Message Body
2256 2258
 	 */
2257 2259
 	public function DKIM_BodyC($body) {
2258
-		if ($body == '')
2259
-			return "\r\n";
2260
+		if ($body == '') {
2261
+					return "\r\n";
2262
+		}
2260 2263
 		// stabilize line endings
2261 2264
 		$body = str_replace("\r\n", "\n", $body);
2262 2265
 		$body = str_replace("\n", "\r\n", $body);
Please login to merge, or discard this patch.
lib/vendor/phpmailer/class.smtp.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -318,6 +318,7 @@  discard block
 block discarded – undo
318 318
 	 * SMTP CODE FAILURE: 451,554
319 319
 	 * SMTP CODE ERROR : 500,501,503,421
320 320
 	 * @access public
321
+	 * @param string $msg_data
321 322
 	 * @return bool
322 323
 	 */
323 324
 	public function Data($msg_data) {
@@ -482,6 +483,8 @@  discard block
 block discarded – undo
482 483
 	/**
483 484
 	 * Sends a HELO/EHLO command.
484 485
 	 * @access private
486
+	 * @param string $hello
487
+	 * @param string $host
485 488
 	 * @return bool
486 489
 	 */
487 490
 	private function SendHello($hello, $host) {
@@ -521,6 +524,7 @@  discard block
 block discarded – undo
521 524
 	 * SMTP CODE SUCCESS: 552,451,452
522 525
 	 * SMTP CODE SUCCESS: 500,501,421
523 526
 	 * @access public
527
+	 * @param string $from
524 528
 	 * @return bool
525 529
 	 */
526 530
 	public function Mail($from) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * Sets whether debugging is turned on
65 65
 	 * @var bool
66 66
 	 */
67
-	public $do_debug;	// the level of debug to perform
67
+	public $do_debug; // the level of debug to perform
68 68
 
69 69
 	/**
70 70
 	 * Sets VERP use on/off (default is off)
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	/////////////////////////////////////////////////
77 77
 
78 78
 	private $smtp_conn; // the socket to the server
79
-	private $error;	 // error if any on the last call
79
+	private $error; // error if any on the last call
80 80
 	private $helo_rply; // the reply the server sent to us for HELO
81 81
 
82 82
 	/**
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,8 +144,9 @@
 block discarded – undo
144 144
 
145 145
 		// SMTP server can take longer to respond, give longer timeout for first read
146 146
 		// Windows does not have support for this timeout function
147
-		if (substr(PHP_OS, 0, 3) != "WIN")
148
-			socket_set_timeout($this->smtp_conn, $tval, 0);
147
+		if (substr(PHP_OS, 0, 3) != "WIN") {
148
+					socket_set_timeout($this->smtp_conn, $tval, 0);
149
+		}
149 150
 
150 151
 		// get any announcement
151 152
 		$announce = $this->get_lines();
Please login to merge, or discard this patch.