@@ -189,7 +189,7 @@ |
||
| 189 | 189 | /** |
| 190 | 190 | * Set the nesting level of this entity |
| 191 | 191 | * |
| 192 | - * @param $level |
|
| 192 | + * @param integer $level |
|
| 193 | 193 | */ |
| 194 | 194 | protected function _setNestingLevel($level) |
| 195 | 195 | { |
@@ -286,10 +286,10 @@ |
||
| 286 | 286 | /** |
| 287 | 287 | * Return php mail extra params to use for invoker->mail. |
| 288 | 288 | * |
| 289 | - * @param $extraParams |
|
| 289 | + * @param string $extraParams |
|
| 290 | 290 | * @param $reversePath |
| 291 | 291 | * |
| 292 | - * @return mixed <string|null> |
|
| 292 | + * @return string|null <string|null> |
|
| 293 | 293 | */ |
| 294 | 294 | private function _formatExtraParams($extraParams, $reversePath) |
| 295 | 295 | { |
@@ -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) { |
@@ -62,6 +62,8 @@ |
||
| 62 | 62 | * Construct the auth parameter. |
| 63 | 63 | * |
| 64 | 64 | * @see https://developers.google.com/google-apps/gmail/xoauth2_protocol#the_sasl_xoauth2_mechanism |
| 65 | + * @param string $email |
|
| 66 | + * @param string $token |
|
| 65 | 67 | */ |
| 66 | 68 | protected function constructXOAuth2Params($email, $token) |
| 67 | 69 | { |
@@ -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'; |