@@ -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) : ''; |
@@ -810,6 +810,9 @@ |
||
| 810 | 810 | } |
| 811 | 811 | } |
| 812 | 812 | |
| 813 | + /** |
|
| 814 | + * @param integer $level |
|
| 815 | + */ |
|
| 813 | 816 | private function _setNestingLevel($level) |
| 814 | 817 | { |
| 815 | 818 | $this->_nestingLevel = $level; |
@@ -849,10 +849,10 @@ |
||
| 849 | 849 | $lowercaseType = Swift::strtolowerWithStaticCache($child->getContentType()); |
| 850 | 850 | |
| 851 | 851 | if (isset($filter[$realLevel]) && isset($filter[$realLevel][$lowercaseType])) { |
| 852 | - return (int)$filter[$realLevel][$lowercaseType]; |
|
| 852 | + return (int) $filter[$realLevel][$lowercaseType]; |
|
| 853 | 853 | } |
| 854 | 854 | |
| 855 | - return (int)$realLevel; |
|
| 855 | + return (int) $realLevel; |
|
| 856 | 856 | } |
| 857 | 857 | |
| 858 | 858 | /** |
@@ -77,9 +77,9 @@ |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | $count = ( |
| 80 | - count((array)$message->getTo()) |
|
| 81 | - + count((array)$message->getCc()) |
|
| 82 | - + count((array)$message->getBcc()) |
|
| 80 | + count((array) $message->getTo()) |
|
| 81 | + + count((array) $message->getCc()) |
|
| 82 | + + count((array) $message->getBcc()) |
|
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | return $count; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function setNameAddresses($mailboxes) |
| 111 | 111 | { |
| 112 | - $this->_mailboxes = $this->normalizeMailboxes((array)$mailboxes); |
|
| 112 | + $this->_mailboxes = $this->normalizeMailboxes((array) $mailboxes); |
|
| 113 | 113 | $this->setCachedValue(null); //Clear any cached value |
| 114 | 114 | } |
| 115 | 115 | |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | public function setAddresses($addresses) |
| 196 | 196 | { |
| 197 | - $this->setNameAddresses(array_values((array)$addresses)); |
|
| 197 | + $this->setNameAddresses(array_values((array) $addresses)); |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /** |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | public function removeAddresses($addresses) |
| 218 | 218 | { |
| 219 | 219 | $this->setCachedValue(null); |
| 220 | - foreach ((array)$addresses as $address) { |
|
| 220 | + foreach ((array) $addresses as $address) { |
|
| 221 | 221 | unset($this->_mailboxes[$address]); |
| 222 | 222 | } |
| 223 | 223 | } |
@@ -268,7 +268,7 @@ |
||
| 268 | 268 | protected function encodeWords(Swift_Mime_Header $header, $input, $usedLength = -1) |
| 269 | 269 | { |
| 270 | 270 | $value = ''; |
| 271 | - $usedLength = (int)$usedLength; |
|
| 271 | + $usedLength = (int) $usedLength; |
|
| 272 | 272 | |
| 273 | 273 | $tokens = $this->getEncodableWordTokens($input); |
| 274 | 274 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | if ($i !== null) { |
| 112 | 112 | $tree[-1] = min(count($replace) - 1, $i); |
| 113 | 113 | $tree[-2] = $last_size; |
| 114 | - $this->_treeMaxLen = (int)$size; |
|
| 114 | + $this->_treeMaxLen = (int) $size; |
|
| 115 | 115 | } |
| 116 | 116 | foreach ($replace as $rep) { |
| 117 | 117 | if (!is_array($rep)) { |
@@ -304,7 +304,7 @@ |
||
| 304 | 304 | */ |
| 305 | 305 | private function _getHandle($nsKey, $itemKey, $position) |
| 306 | 306 | { |
| 307 | - $position = (int)$position; |
|
| 307 | + $position = (int) $position; |
|
| 308 | 308 | |
| 309 | 309 | if (!isset($this->_keys[$nsKey][$itemKey])) { |
| 310 | 310 | $openMode = $this->hasKey($nsKey, $itemKey) ? 'r+b' : 'w+b'; |