@@ -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 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | */ |
257 | 257 | public function executeCommand($command, $codes = array(), &$failures = null) |
258 | 258 | { |
259 | - $failures = (array)$failures; |
|
259 | + $failures = (array) $failures; |
|
260 | 260 | $stopSignal = false; |
261 | 261 | $response = null; |
262 | 262 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | |
288 | 288 | $inArray = in_array( |
289 | 289 | Swift::strtolowerWithStaticCache($method), |
290 | - array_map(array('Swift', 'strtolowerWithStaticCache'), (array)$handler->exposeMixinMethods()), |
|
290 | + array_map(array('Swift', 'strtolowerWithStaticCache'), (array) $handler->exposeMixinMethods()), |
|
291 | 291 | true |
292 | 292 | ); |
293 | 293 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | } |
307 | 307 | } |
308 | 308 | } |
309 | - trigger_error('Call to undefined method ' . $method, E_USER_ERROR); |
|
309 | + trigger_error('Call to undefined method '.$method, E_USER_ERROR); |
|
310 | 310 | } |
311 | 311 | |
312 | 312 | /** Get the params to initialize the buffer */ |
@@ -372,10 +372,10 @@ discard block |
||
372 | 372 | |
373 | 373 | $params = array(); |
374 | 374 | foreach ($handlers as $handler) { |
375 | - $params = array_merge($params, (array)$handler->getMailParams()); |
|
375 | + $params = array_merge($params, (array) $handler->getMailParams()); |
|
376 | 376 | } |
377 | 377 | |
378 | - $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
|
378 | + $paramStr = !empty($params) ? ' '.implode(' ', $params) : ''; |
|
379 | 379 | $this->executeCommand( |
380 | 380 | sprintf("MAIL FROM:<%s>%s\r\n", $address, $paramStr), array(250) |
381 | 381 | ); |
@@ -392,10 +392,10 @@ discard block |
||
392 | 392 | |
393 | 393 | $params = array(); |
394 | 394 | foreach ($handlers as $handler) { |
395 | - $params = array_merge($params, (array)$handler->getRcptParams()); |
|
395 | + $params = array_merge($params, (array) $handler->getRcptParams()); |
|
396 | 396 | } |
397 | 397 | |
398 | - $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
|
398 | + $paramStr = !empty($params) ? ' '.implode(' ', $params) : ''; |
|
399 | 399 | $this->executeCommand( |
400 | 400 | sprintf("RCPT TO:<%s>%s\r\n", $address, $paramStr), array(250, 251, 252) |
401 | 401 | ); |