@@ -308,8 +308,11 @@ |
||
| 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"); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | if(file_exists($attachment) || $this->isURL($attachment)) { |
| 171 | 171 | if(is_numeric($fileName)){ |
| 172 | 172 | $fileName = basename($attachment); |
| 173 | - }else{ |
|
| 173 | + } else{ |
|
| 174 | 174 | $extension = pathinfo($attachment, PATHINFO_EXTENSION); |
| 175 | 175 | if (strpos($fileName, '.'.$extension) === false) { |
| 176 | 176 | $fileName .= '.'.$extension; |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | public function addHeaders($headers){ |
| 200 | 200 | if(is_array($headers)){ |
| 201 | 201 | $this->headers = array_merge($this->headers,$headers); |
| 202 | - }else{ |
|
| 202 | + } else{ |
|
| 203 | 203 | $this->headers[] = $headers; |
| 204 | 204 | } |
| 205 | 205 | return $this; |