@@ -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 | } |
@@ -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'; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | public function send(Swift_Mime_Message $message, /** @noinspection ParameterByRefWithDefaultInspection */ &$failedRecipients = null) |
178 | 178 | { |
179 | 179 | $sent = 0; |
180 | - $failedRecipients = (array)$failedRecipients; |
|
180 | + $failedRecipients = (array) $failedRecipients; |
|
181 | 181 | |
182 | 182 | $evt = $this->_eventDispatcher->createSendEvent($this, $message); |
183 | 183 | if ($evt) { |
@@ -196,10 +196,10 @@ discard block |
||
196 | 196 | ); |
197 | 197 | } |
198 | 198 | |
199 | - $to = (array)$message->getTo(); |
|
200 | - $cc = (array)$message->getCc(); |
|
199 | + $to = (array) $message->getTo(); |
|
200 | + $cc = (array) $message->getCc(); |
|
201 | 201 | $tos = array_merge($to, $cc); |
202 | - $bcc = (array)$message->getBcc(); |
|
202 | + $bcc = (array) $message->getBcc(); |
|
203 | 203 | |
204 | 204 | $message->setBcc(array()); |
205 | 205 | |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | */ |
309 | 309 | public function executeCommand($command, $codes = array(), &$failures) |
310 | 310 | { |
311 | - $failures = (array)$failures; |
|
311 | + $failures = (array) $failures; |
|
312 | 312 | $seq = $this->_buffer->write($command); |
313 | 313 | $response = $this->_getFullResponse($seq); |
314 | 314 |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function setPort($port) |
93 | 93 | { |
94 | - $this->_params['port'] = (int)$port; |
|
94 | + $this->_params['port'] = (int) $port; |
|
95 | 95 | |
96 | 96 | return $this; |
97 | 97 | } |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function setTimeout($timeout) |
117 | 117 | { |
118 | - $this->_params['timeout'] = (int)$timeout; |
|
119 | - $this->_buffer->setParam('timeout', (int)$timeout); |
|
118 | + $this->_params['timeout'] = (int) $timeout; |
|
119 | + $this->_buffer->setParam('timeout', (int) $timeout); |
|
120 | 120 | |
121 | 121 | return $this; |
122 | 122 | } |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | */ |
255 | 255 | public function executeCommand($command, $codes = array(), &$failures = null) |
256 | 256 | { |
257 | - $failures = (array)$failures; |
|
257 | + $failures = (array) $failures; |
|
258 | 258 | $stopSignal = false; |
259 | 259 | $response = null; |
260 | 260 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | if ( |
288 | 288 | in_array( |
289 | 289 | strtolower($method), |
290 | - array_map('strtolower', (array)$handler->exposeMixinMethods()), |
|
290 | + array_map('strtolower', (array) $handler->exposeMixinMethods()), |
|
291 | 291 | true |
292 | 292 | ) |
293 | 293 | ) { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | |
372 | 372 | $params = array(); |
373 | 373 | foreach ($handlers as $handler) { |
374 | - $params = array_merge($params, (array)$handler->getMailParams()); |
|
374 | + $params = array_merge($params, (array) $handler->getMailParams()); |
|
375 | 375 | } |
376 | 376 | |
377 | 377 | $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | $params = array(); |
393 | 393 | foreach ($handlers as $handler) { |
394 | - $params = array_merge($params, (array)$handler->getRcptParams()); |
|
394 | + $params = array_merge($params, (array) $handler->getRcptParams()); |
|
395 | 395 | } |
396 | 396 | |
397 | 397 | $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function send(Swift_Mime_Message $message, &$failedRecipients = null) |
106 | 106 | { |
107 | - $failedRecipients = (array)$failedRecipients; |
|
107 | + $failedRecipients = (array) $failedRecipients; |
|
108 | 108 | |
109 | 109 | $evt = $this->_eventDispatcher->createSendEvent($this, $message); |
110 | 110 | if ($evt) { |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | $count = ( |
119 | - count((array)$message->getTo()) |
|
120 | - + count((array)$message->getCc()) |
|
121 | - + count((array)$message->getBcc()) |
|
119 | + count((array) $message->getTo()) |
|
120 | + + count((array) $message->getCc()) |
|
121 | + + count((array) $message->getBcc()) |
|
122 | 122 | ); |
123 | 123 | |
124 | 124 | /* |
@@ -181,9 +181,9 @@ discard block |
||
181 | 181 | } else { |
182 | 182 | $failedRecipients = array_merge( |
183 | 183 | $failedRecipients, |
184 | - array_keys((array)$message->getTo()), |
|
185 | - array_keys((array)$message->getCc()), |
|
186 | - array_keys((array)$message->getBcc()) |
|
184 | + array_keys((array) $message->getTo()), |
|
185 | + array_keys((array) $message->getCc()), |
|
186 | + array_keys((array) $message->getBcc()) |
|
187 | 187 | ); |
188 | 188 | |
189 | 189 | if ($evt) { |