@@ -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; |
@@ -226,8 +226,8 @@ discard block |
||
226 | 226 | protected function createMessage1() |
227 | 227 | { |
228 | 228 | return self::NTLMSIG |
229 | - . $this->createByte('01') // Message 1 |
|
230 | - . $this->createByte('0702'); // Flags |
|
229 | + . $this->createByte('01') // Message 1 |
|
230 | + . $this->createByte('0702'); // Flags |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
@@ -255,19 +255,19 @@ discard block |
||
255 | 255 | $ntlmSec = $this->createSecurityBuffer($ntlmResponse, ($lmInfo[0] + $lmInfo[1]) / 2, true); |
256 | 256 | |
257 | 257 | return self::NTLMSIG |
258 | - . $this->createByte('03') // TYPE 3 message |
|
259 | - . $lmSec // LM response header |
|
260 | - . $ntlmSec // NTLM response header |
|
261 | - . $domainSec // Domain header |
|
262 | - . $userSec // User header |
|
263 | - . $workSec // Workstation header |
|
264 | - . $this->createByte('000000009a', 8) // session key header (empty) |
|
265 | - . $this->createByte('01020000') // FLAGS |
|
266 | - . $this->convertTo16bit($domain) // domain name |
|
267 | - . $this->convertTo16bit($username) // username |
|
268 | - . $this->convertTo16bit($workstation) // workstation |
|
269 | - . $lmResponse |
|
270 | - . $ntlmResponse; |
|
258 | + . $this->createByte('03') // TYPE 3 message |
|
259 | + . $lmSec // LM response header |
|
260 | + . $ntlmSec // NTLM response header |
|
261 | + . $domainSec // Domain header |
|
262 | + . $userSec // User header |
|
263 | + . $workSec // Workstation header |
|
264 | + . $this->createByte('000000009a', 8) // session key header (empty) |
|
265 | + . $this->createByte('01020000') // FLAGS |
|
266 | + . $this->convertTo16bit($domain) // domain name |
|
267 | + . $this->convertTo16bit($username) // username |
|
268 | + . $this->convertTo16bit($workstation) // workstation |
|
269 | + . $lmResponse |
|
270 | + . $ntlmResponse; |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
@@ -280,12 +280,12 @@ discard block |
||
280 | 280 | protected function createBlob($timestamp, $client, $targetInfo) |
281 | 281 | { |
282 | 282 | return $this->createByte('0101') |
283 | - . $this->createByte('00') |
|
284 | - . $timestamp |
|
285 | - . $client |
|
286 | - . $this->createByte('00') |
|
287 | - . $targetInfo |
|
288 | - . $this->createByte('00'); |
|
283 | + . $this->createByte('00') |
|
284 | + . $timestamp |
|
285 | + . $client |
|
286 | + . $this->createByte('00') |
|
287 | + . $targetInfo |
|
288 | + . $this->createByte('00'); |
|
289 | 289 | } |
290 | 290 | |
291 | 291 | /** |
@@ -451,16 +451,16 @@ discard block |
||
451 | 451 | foreach ($material as $k => $v) { |
452 | 452 | $b = $this->castToByte(hexdec($v)); |
453 | 453 | $needsParity = ( |
454 | - ( |
|
455 | - $this->uRShift($b, 7) |
|
456 | - ^ $this->uRShift($b, 6) |
|
457 | - ^ $this->uRShift($b, 5) |
|
458 | - ^ $this->uRShift($b, 4) |
|
459 | - ^ $this->uRShift($b, 3) |
|
460 | - ^ $this->uRShift($b, 2) |
|
461 | - ^ $this->uRShift($b, 1) |
|
462 | - ) & 0x01 |
|
463 | - ) == 0; |
|
454 | + ( |
|
455 | + $this->uRShift($b, 7) |
|
456 | + ^ $this->uRShift($b, 6) |
|
457 | + ^ $this->uRShift($b, 5) |
|
458 | + ^ $this->uRShift($b, 4) |
|
459 | + ^ $this->uRShift($b, 3) |
|
460 | + ^ $this->uRShift($b, 2) |
|
461 | + ^ $this->uRShift($b, 1) |
|
462 | + ) & 0x01 |
|
463 | + ) == 0; |
|
464 | 464 | |
465 | 465 | list($high, $low) = str_split($v); |
466 | 466 |
@@ -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'; |