Passed
Branch master (537188)
by Alcenir
01:26
created
src/Email.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		
39 39
 	) {
40 40
 		$this->mail = new PHPMailer(true);
41
-        $this->data = new \stdClass();
41
+		$this->data = new \stdClass();
42 42
 		//Server settings
43 43
 		$this->mail->SMTPDebug = $smtpDegug;          // Enable verbose debug output
44 44
 		$this->mail->isSMTP();                        // Send using SMTP
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
 		
109 109
 		if (!$this->is_email($from)) {
110 110
 			echo "<b>O e-mail de remetente não é válido:</b> ";
111
-            return false;
111
+			return false;
112 112
 		}
113 113
 		
114 114
 		try {
115 115
 			$this->mail->Subject = $this->data->subject;
116
-            $this->mail->msgHTML($this->data->body);
117
-            $this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name);
116
+			$this->mail->msgHTML($this->data->body);
117
+			$this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name);
118 118
 			$this->mail->setFrom($from, $fromName);
119 119
 			
120 120
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@
 block discarded – undo
40 40
 		$this->mail = new PHPMailer(true);
41 41
         $this->data = new \stdClass();
42 42
 		//Server settings
43
-		$this->mail->SMTPDebug = $smtpDegug;          // Enable verbose debug output
44
-		$this->mail->isSMTP();                        // Send using SMTP
45
-		$this->mail->Host = $host;                    // Set the SMTP server to send through
46
-		$this->mail->SMTPAuth = true;                 // Enable SMTP authentication
47
-		$this->mail->Username = $user;                // SMTP username
48
-		$this->mail->Password = $passwd;              // SMTP password
49
-		$this->mail->SMTPSecure = $smtpSecure;        // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS |PHPMailer::ENCRYPTION_STARTTLS` also accepted
50
-		$this->mail->Port = $port;                    // TCP port to connect to
43
+		$this->mail->SMTPDebug = $smtpDegug; // Enable verbose debug output
44
+		$this->mail->isSMTP(); // Send using SMTP
45
+		$this->mail->Host = $host; // Set the SMTP server to send through
46
+		$this->mail->SMTPAuth = true; // Enable SMTP authentication
47
+		$this->mail->Username = $user; // SMTP username
48
+		$this->mail->Password = $passwd; // SMTP password
49
+		$this->mail->SMTPSecure = $smtpSecure; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS |PHPMailer::ENCRYPTION_STARTTLS` also accepted
50
+		$this->mail->Port = $port; // TCP port to connect to
51 51
 		$this->mail->CharSet = $charSEt;
52 52
 		$this->mail->setLanguage($language);
53 53
 		$this->mail->isHTML(true);
Please login to merge, or discard this patch.