@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * SOFTWARE. |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | - class Email extends BaseClass{ |
|
| 31 | + class Email extends BaseClass { |
|
| 32 | 32 | /** |
| 33 | 33 | * @var int $wrap |
| 34 | 34 | */ |
@@ -978,7 +978,7 @@ discard block |
||
| 978 | 978 | $message = $this->getWrapMessage(); |
| 979 | 979 | if ($this->hasAttachments()) { |
| 980 | 980 | $this->setAttachmentHeaders(); |
| 981 | - $message = $this->assembleAttachmentBody(); |
|
| 981 | + $message = $this->assembleAttachmentBody(); |
|
| 982 | 982 | } |
| 983 | 983 | return $message; |
| 984 | 984 | } |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | $this->smtpConnectionTimeout |
| 1073 | 1073 | ); |
| 1074 | 1074 | |
| 1075 | - if (! is_resource($this->smtpSocket)) { |
|
| 1075 | + if (!is_resource($this->smtpSocket)) { |
|
| 1076 | 1076 | $this->error = $errorNumber . ':' . $errorMessage; |
| 1077 | 1077 | return false; |
| 1078 | 1078 | } |
@@ -1121,7 +1121,7 @@ discard block |
||
| 1121 | 1121 | */ |
| 1122 | 1122 | if (is_resource($this->smtpSocket)) { |
| 1123 | 1123 | $method = STREAM_CRYPTO_METHOD_TLS_CLIENT; |
| 1124 | - if(version_compare(PHP_VERSION, '5.6', '>=')) { |
|
| 1124 | + if (version_compare(PHP_VERSION, '5.6', '>=')) { |
|
| 1125 | 1125 | $method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; |
| 1126 | 1126 | } |
| 1127 | 1127 | stream_socket_enable_crypto($this->smtpSocket, true, $method); |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | 'To' => $to |
| 1189 | 1189 | ); |
| 1190 | 1190 | foreach ($additionalHeaders as $key => $value) { |
| 1191 | - if (! isset($this->headers[$key])) { |
|
| 1191 | + if (!isset($this->headers[$key])) { |
|
| 1192 | 1192 | $this->headers[$key] = $value; |
| 1193 | 1193 | } |
| 1194 | 1194 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | static $cfg; |
| 148 | 148 | if (empty($cfg)) { |
| 149 | 149 | $cfg[0] = & load_configurations(); |
| 150 | - if(! is_array($cfg[0])){ |
|
| 150 | + if (!is_array($cfg[0])) { |
|
| 151 | 151 | $cfg[0] = array(); |
| 152 | 152 | } |
| 153 | 153 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | set_http_status_header(500); |
| 198 | 198 | } |
| 199 | 199 | $errorType = 'Error'; |
| 200 | - $errorsType = array ( |
|
| 200 | + $errorsType = array( |
|
| 201 | 201 | E_ERROR => 'Error', |
| 202 | 202 | E_WARNING => 'Warning', |
| 203 | 203 | E_PARSE => 'Parsing Error', |