@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function isValidSimpleWrapper($email) |
32 | 32 | { |
33 | - return (boolean)preg_match('/^(.*<?)(.*)@(.*)(>?)$/', $email); |
|
33 | + return (boolean) preg_match('/^(.*<?)(.*)@(.*)(>?)$/', $email); |
|
34 | 34 | } |
35 | 35 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | // Treat token as exactly what was given |
219 | 219 | $phraseStr = $string; |
220 | 220 | // If it's not valid |
221 | - if (!preg_match('/^'.self::PHRASE_PATTERN.'$/D', $phraseStr)) { |
|
221 | + if (!preg_match('/^' . self::PHRASE_PATTERN . '$/D', $phraseStr)) { |
|
222 | 222 | // .. but it is just ascii text, try escaping some characters |
223 | 223 | // and make it a quoted-string |
224 | 224 | if (preg_match('/^[\x00-\x08\x0B\x0C\x0E-\x7F]*$/D', $phraseStr)) { |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | protected function escapeSpecials($token, array $include = array()) |
251 | 251 | { |
252 | 252 | foreach (array_merge(array('\\'), $include) as $char) { |
253 | - $token = str_replace($char, '\\'.$char, $token); |
|
253 | + $token = str_replace($char, '\\' . $char, $token); |
|
254 | 254 | } |
255 | 255 | return $token; |
256 | 256 | } |
@@ -199,7 +199,7 @@ |
||
199 | 199 | { |
200 | 200 | list($domain, $username) = $this->getDomainAndUsername($username); |
201 | 201 | //$challenge, $context, $targetInfoH, $targetName, $domainName, $workstation, $DNSDomainName, $DNSServerName, $blob, $ter |
202 | - list($challenge, , , , , $workstation, , , $blob) = $this->parseMessage2($response); |
|
202 | + list($challenge,,,,, $workstation,,, $blob) = $this->parseMessage2($response); |
|
203 | 203 | |
204 | 204 | if (!$v2) { |
205 | 205 | // LMv1 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function send(Swift_Mime_Message $message, &$failedRecipients = null) |
101 | 101 | { |
102 | - $failedRecipients = (array)$failedRecipients; |
|
102 | + $failedRecipients = (array) $failedRecipients; |
|
103 | 103 | $command = $this->getCommand(); |
104 | 104 | $buffer = $this->getBuffer(); |
105 | 105 | $count = 0; |
@@ -127,9 +127,9 @@ discard block |
||
127 | 127 | $buffer->setWriteTranslations(array("\r\n" => "\n")); |
128 | 128 | } |
129 | 129 | |
130 | - $count = count((array)$message->getTo()) |
|
131 | - + count((array)$message->getCc()) |
|
132 | - + count((array)$message->getBcc()); |
|
130 | + $count = count((array) $message->getTo()) |
|
131 | + + count((array) $message->getCc()) |
|
132 | + + count((array) $message->getBcc()); |
|
133 | 133 | |
134 | 134 | $message->toByteStream($buffer); |
135 | 135 | $buffer->flushBuffers(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | require __DIR__ . '/classes/Swift.php'; |
12 | 12 | |
13 | 13 | Swift::registerAutoload( |
14 | - function () { |
|
14 | + function() { |
|
15 | 15 | // Load in dependency maps |
16 | 16 | require __DIR__ . '/dependency_maps/cache_deps.php'; |
17 | 17 | require __DIR__ . '/dependency_maps/mime_deps.php'; |