Passed
Push — master ( 400e12...8208ab )
by ma
01:59
created
src/Gateways/Smtp.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -308,8 +308,11 @@
 block discarded – undo
308 308
     private function smtpPutCmd($cmd, $arg = "")
309 309
     {
310 310
         if ($arg != "") {
311
-            if($cmd=="") $cmd = $arg;
312
-            else $cmd = $cmd." ".$arg;
311
+            if($cmd=="") {
312
+                $cmd = $arg;
313
+            } else {
314
+                $cmd = $cmd." ".$arg;
315
+            }
313 316
         }
314 317
         fputs($this->sock, $cmd."\r\n");
315 318
         $this->debug("> ".$cmd."\n");
Please login to merge, or discard this patch.
example/sendmail.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
 $state = $email->sendmail( $mailtitle, $mailcontent, $mailtype);
34 34
 echo "<div style='width:300px; margin:36px auto;'>";
35 35
 if($state==""){
36
-	echo "对不起,邮件发送失败!请检查邮箱填写是否有误。";
37
-	echo "<a href='index.html'>点此返回</a>";
38
-	exit();
36
+    echo "对不起,邮件发送失败!请检查邮箱填写是否有误。";
37
+    echo "<a href='index.html'>点此返回</a>";
38
+    exit();
39 39
 }
40 40
 echo "恭喜!邮件发送成功!!";
41 41
 echo "<a href='index.html'>点此返回</a>";
Please login to merge, or discard this patch.
src/Connector/Gateway.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     public function addHeaders($headers){
192 192
         if(is_array($headers)){
193 193
             $this->headers = array_merge($this->headers,$headers);
194
-        }else{
194
+        } else{
195 195
             $this->headers[] = $headers;
196 196
         }
197 197
         return $this;
Please login to merge, or discard this patch.