@@ -113,7 +113,7 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function toString() |
| 115 | 115 | { |
| 116 | - return $this->_fieldName . ': ' . $this->_value; |
|
| 116 | + return $this->_fieldName.': '.$this->_value; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | $angleAddrs = array(); |
| 157 | 157 | |
| 158 | 158 | foreach ($this->_ids as $id) { |
| 159 | - $angleAddrs[] = '<' . $id . '>'; |
|
| 159 | + $angleAddrs[] = '<'.$id.'>'; |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | $this->setCachedValue(implode(' ', $angleAddrs)); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | if ($this->_emailValidator->isValidSimpleWrapper($id) === false) { |
| 178 | 178 | throw new Swift_RfcComplianceException( |
| 179 | - 'Invalid ID given <' . $id . '>' |
|
| 179 | + 'Invalid ID given <'.$id.'>' |
|
| 180 | 180 | ); |
| 181 | 181 | } |
| 182 | 182 | } |
@@ -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 | } |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | $mailboxStr = $email; |
| 334 | 334 | if ($name) { |
| 335 | 335 | $nameStr = $this->createDisplayNameString($name, empty($strings)); |
| 336 | - $mailboxStr = $nameStr . ' <' . $mailboxStr . '>'; |
|
| 336 | + $mailboxStr = $nameStr.' <'.$mailboxStr.'>'; |
|
| 337 | 337 | } |
| 338 | 338 | $strings[] = $mailboxStr; |
| 339 | 339 | } |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | private function _assertValidAddress($address) |
| 352 | 352 | { |
| 353 | 353 | if ($this->_emailValidator->isValidWrapper($address) === false) { |
| 354 | - throw new Swift_RfcComplianceException('Address in mailbox given [' . $address . '] does not comply with RFC 2822, 3.6.2.'); |
|
| 354 | + throw new Swift_RfcComplianceException('Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.'); |
|
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | } |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | * |
| 203 | 203 | * @see getNameAddresses() |
| 204 | 204 | * |
| 205 | - * @return string[] |
|
| 205 | + * @return integer[] |
|
| 206 | 206 | */ |
| 207 | 207 | public function getAddresses() |
| 208 | 208 | { |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | { |
| 127 | 127 | if (!$this->getCachedValue()) { |
| 128 | 128 | if (isset($this->_address)) { |
| 129 | - $this->setCachedValue('<' . $this->_address . '>'); |
|
| 129 | + $this->setCachedValue('<'.$this->_address.'>'); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * Get the model for the field body. |
| 73 | 73 | * This method returns a string email address. |
| 74 | 74 | * |
| 75 | - * @return mixed |
|
| 75 | + * @return string |
|
| 76 | 76 | */ |
| 77 | 77 | public function getFieldBodyModel() |
| 78 | 78 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | protected function getSafeMapShareId() |
| 39 | 39 | { |
| 40 | - return get_class($this) . ($this->_dotEscape ? '.dotEscape' : ''); |
|
| 40 | + return get_class($this).($this->_dotEscape ? '.dotEscape' : ''); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | protected function initSafeMap() |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $newLineLength = $lineLen + ($i === false ? $size : $i); |
| 101 | 101 | |
| 102 | 102 | if ($currentLine && $newLineLength >= $thisLineLength) { |
| 103 | - $is->write($prepend . $this->_standardize($currentLine)); |
|
| 103 | + $is->write($prepend.$this->_standardize($currentLine)); |
|
| 104 | 104 | $currentLine = ''; |
| 105 | 105 | $prepend = "=\r\n"; |
| 106 | 106 | $thisLineLength = $maxLineLength; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if ($currentLine !== '') { |
| 121 | - $is->write($prepend . $this->_standardize($currentLine)); |
|
| 121 | + $is->write($prepend.$this->_standardize($currentLine)); |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | if ($atEOF) { |
| 47 | 47 | $streamTheseBytes = $base64ReadBufferRemainderBytes; |
| 48 | 48 | } else { |
| 49 | - $streamTheseBytes = $base64ReadBufferRemainderBytes . $readBytes; |
|
| 49 | + $streamTheseBytes = $base64ReadBufferRemainderBytes.$readBytes; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $base64ReadBufferRemainderBytes = null; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $thisMaxLineLength = $maxLineLength - $remainder - $firstLineOffset; |
| 72 | 72 | |
| 73 | 73 | while ($thisMaxLineLength < strlen($encoded)) { |
| 74 | - $encodedTransformed .= substr($encoded, 0, $thisMaxLineLength) . "\r\n"; |
|
| 74 | + $encodedTransformed .= substr($encoded, 0, $thisMaxLineLength)."\r\n"; |
|
| 75 | 75 | $firstLineOffset = 0; |
| 76 | 76 | $encoded = substr($encoded, $thisMaxLineLength); |
| 77 | 77 | $thisMaxLineLength = $maxLineLength; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | $leftOver = ''; |
| 73 | 73 | while (false !== $bytes = $os->read(8192)) { |
| 74 | - $toencode = $leftOver . $bytes; |
|
| 74 | + $toencode = $leftOver.$bytes; |
|
| 75 | 75 | |
| 76 | 76 | if ($this->_canonical) { |
| 77 | 77 | $toencode = $this->_canonicalize($toencode); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | if ( |
| 141 | 141 | $currentLine !== '' |
| 142 | 142 | && |
| 143 | - strlen($currentLine . $chunk) > $length |
|
| 143 | + strlen($currentLine.$chunk) > $length |
|
| 144 | 144 | ) { |
| 145 | 145 | $lines[] = ''; |
| 146 | 146 | $currentLine = &$lines[$lineCount++]; |
@@ -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 | /* |
@@ -151,10 +151,10 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | // Separate headers from body |
| 153 | 153 | if (false !== $endHeaders = strpos($messageStr, "\r\n\r\n")) { |
| 154 | - $headers = substr($messageStr, 0, $endHeaders) . "\r\n"; // Keep last EOL |
|
| 154 | + $headers = substr($messageStr, 0, $endHeaders)."\r\n"; // Keep last EOL |
|
| 155 | 155 | $body = substr($messageStr, $endHeaders + 4); |
| 156 | 156 | } else { |
| 157 | - $headers = $messageStr . "\r\n"; |
|
| 157 | + $headers = $messageStr."\r\n"; |
|
| 158 | 158 | $body = ''; |
| 159 | 159 | } |
| 160 | 160 | |
@@ -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) { |
@@ -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 | { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | public function send(Swift_Mime_Message $message, &$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 = null) |
| 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 | |
@@ -461,8 +461,8 @@ discard block |
||
| 461 | 461 | if (!$valid) { |
| 462 | 462 | $this->_throwException( |
| 463 | 463 | new Swift_TransportException( |
| 464 | - 'Expected response code ' . implode('/', $wanted) . ' but got code ' . |
|
| 465 | - '"' . $code . '", with message "' . $response . '"', |
|
| 464 | + 'Expected response code '.implode('/', $wanted).' but got code '. |
|
| 465 | + '"'.$code.'", with message "'.$response.'"', |
|
| 466 | 466 | $code |
| 467 | 467 | ) |
| 468 | 468 | ); |