@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Resets internal states. |
| 143 | 143 | * |
| 144 | - * @return Swift_Signers_DomainKeysSigner |
|
| 144 | + * @return Swift_Signers_DomainKeySigner |
|
| 145 | 145 | */ |
| 146 | 146 | public function reset() |
| 147 | 147 | { |
@@ -169,8 +169,8 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @throws Swift_IoException |
| 171 | 171 | * |
| 172 | - * @return int |
|
| 173 | - * @return Swift_Signers_DomainKeysSigner |
|
| 172 | + * @return Swift_Signers_DomainKeySigner |
|
| 173 | + * @return Swift_Signers_DomainKeySigner |
|
| 174 | 174 | */ |
| 175 | 175 | public function write($bytes) |
| 176 | 176 | { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @throws Swift_IoException |
| 190 | 190 | * |
| 191 | - * @return Swift_Signers_DomainKeysSigner |
|
| 191 | + * @return Swift_Signers_DomainKeySigner |
|
| 192 | 192 | */ |
| 193 | 193 | public function commit() |
| 194 | 194 | { |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * |
| 204 | 204 | * @param Swift_InputByteStream $is |
| 205 | 205 | * |
| 206 | - * @return Swift_Signers_DomainKeysSigner |
|
| 206 | + * @return Swift_Signers_DomainKeySigner |
|
| 207 | 207 | */ |
| 208 | 208 | public function bind(Swift_InputByteStream $is) |
| 209 | 209 | { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * |
| 222 | 222 | * @param Swift_InputByteStream $is |
| 223 | 223 | * |
| 224 | - * @return Swift_Signers_DomainKeysSigner |
|
| 224 | + * @return null|Swift_Signers_DomainKeySigner |
|
| 225 | 225 | */ |
| 226 | 226 | public function unbind(Swift_InputByteStream $is) |
| 227 | 227 | { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * |
| 244 | 244 | * @throws Swift_IoException |
| 245 | 245 | * |
| 246 | - * @return Swift_Signers_DomainKeysSigner |
|
| 246 | + * @return Swift_Signers_DomainKeySigner |
|
| 247 | 247 | */ |
| 248 | 248 | public function flushBuffers() |
| 249 | 249 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @param string $hash |
| 259 | 259 | * |
| 260 | - * @return Swift_Signers_DomainKeysSigner |
|
| 260 | + * @return Swift_Signers_DomainKeySigner |
|
| 261 | 261 | */ |
| 262 | 262 | public function setHashAlgorithm($hash) |
| 263 | 263 | { |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * |
| 272 | 272 | * @param string $canon simple | nofws defaults to simple |
| 273 | 273 | * |
| 274 | - * @return Swift_Signers_DomainKeysSigner |
|
| 274 | + * @return Swift_Signers_DomainKeySigner |
|
| 275 | 275 | */ |
| 276 | 276 | public function setCanon($canon) |
| 277 | 277 | { |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | /** |
| 331 | 331 | * Returns the list of Headers Tampered by this plugin. |
| 332 | 332 | * |
| 333 | - * @return array |
|
| 333 | + * @return string[] |
|
| 334 | 334 | */ |
| 335 | 335 | public function getAlteredHeaders() |
| 336 | 336 | { |
@@ -431,6 +431,9 @@ discard block |
||
| 431 | 431 | $this->_bodyCanonEmptyCounter = 1; |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | + /** |
|
| 435 | + * @param string $string |
|
| 436 | + */ |
|
| 434 | 437 | protected function _canonicalizeBody($string) |
| 435 | 438 | { |
| 436 | 439 | $len = strlen($string); |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Constructor. |
| 43 | 43 | * |
| 44 | - * @param string $certificate |
|
| 45 | - * @param string $privateKey |
|
| 44 | + * @param string $signCertificate |
|
| 45 | + * @param string $signPrivateKey |
|
| 46 | 46 | * @param string $encryptCertificate |
| 47 | 47 | */ |
| 48 | 48 | public function __construct($signCertificate = null, $signPrivateKey = null, $encryptCertificate = null) |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | /** |
| 226 | 226 | * Return the list of header a signer might tamper. |
| 227 | 227 | * |
| 228 | - * @return array |
|
| 228 | + * @return string[] |
|
| 229 | 229 | */ |
| 230 | 230 | public function getAlteredHeaders() |
| 231 | 231 | { |
@@ -234,7 +234,6 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | /** |
| 236 | 236 | * @param Swift_InputByteStream $inputStream |
| 237 | - * @param Swift_Message $mimeEntity |
|
| 238 | 237 | */ |
| 239 | 238 | protected function toSMimeByteStream(Swift_InputByteStream $inputStream, Swift_Message $message) |
| 240 | 239 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * Returns true if based on the buffer passed more bytes should be buffered. |
| 99 | 99 | * |
| 100 | - * @param array $buffer |
|
| 100 | + * @param integer[] $buffer |
|
| 101 | 101 | * |
| 102 | 102 | * @return bool |
| 103 | 103 | */ |
@@ -73,6 +73,9 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $si |
|
| 78 | + */ |
|
| 76 | 79 | protected function si2bin($si, $bits = 32) |
| 77 | 80 | { |
| 78 | 81 | $bin = null; |
@@ -150,9 +153,9 @@ discard block |
||
| 150 | 153 | /** |
| 151 | 154 | * Read the blob information in from message2. |
| 152 | 155 | * |
| 153 | - * @param $block |
|
| 156 | + * @param string $block |
|
| 154 | 157 | * |
| 155 | - * @return array |
|
| 158 | + * @return string[] |
|
| 156 | 159 | */ |
| 157 | 160 | protected function readSubBlock($block) |
| 158 | 161 | { |
@@ -486,7 +489,7 @@ discard block |
||
| 486 | 489 | * |
| 487 | 490 | * @param string $value Securitybuffer in hex |
| 488 | 491 | * |
| 489 | - * @return array array with length and offset |
|
| 492 | + * @return double[] array with length and offset |
|
| 490 | 493 | */ |
| 491 | 494 | protected function readSecurityBuffer($value) |
| 492 | 495 | { |
@@ -549,7 +552,7 @@ discard block |
||
| 549 | 552 | /** |
| 550 | 553 | * Create random bytes. |
| 551 | 554 | * |
| 552 | - * @param $length |
|
| 555 | + * @param integer $length |
|
| 553 | 556 | * |
| 554 | 557 | * @return string |
| 555 | 558 | */ |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | { |
| 197 | 197 | list($domain, $username) = $this->getDomainAndUsername($username); |
| 198 | 198 | //$challenge, $context, $targetInfoH, $targetName, $domainName, $workstation, $DNSDomainName, $DNSServerName, $blob, $ter |
| 199 | - list($challenge, , , , , $workstation, , , $blob) = $this->parseMessage2($response); |
|
| 199 | + list($challenge,,,,, $workstation,,, $blob) = $this->parseMessage2($response); |
|
| 200 | 200 | |
| 201 | 201 | if (!$v2) { |
| 202 | 202 | // LMv1 |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Get the name of the ESMTP extension this handles. |
| 145 | 145 | * |
| 146 | - * @return bool |
|
| 146 | + * @return string |
|
| 147 | 147 | */ |
| 148 | 148 | public function getHandledKeyword() |
| 149 | 149 | { |
@@ -242,9 +242,8 @@ discard block |
||
| 242 | 242 | /** |
| 243 | 243 | * Returns the authenticator list for the given agent. |
| 244 | 244 | * |
| 245 | - * @param Swift_Transport_SmtpAgent $agent |
|
| 246 | 245 | * |
| 247 | - * @return array |
|
| 246 | + * @return Swift_Transport_Esmtp_Authenticator[] |
|
| 248 | 247 | */ |
| 249 | 248 | protected function _getAuthenticatorsForAgent() |
| 250 | 249 | { |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * |
| 188 | 188 | * @throws Swift_IoException |
| 189 | 189 | * |
| 190 | - * @return string|bool |
|
| 190 | + * @return string|null |
|
| 191 | 191 | */ |
| 192 | 192 | public function read($length) |
| 193 | 193 | { |
@@ -127,6 +127,9 @@ |
||
| 127 | 127 | |
| 128 | 128 | // -- Creation Methods |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @return Swift_InputByteStream |
|
| 132 | + */ |
|
| 130 | 133 | private function _createMockInputStream() |
| 131 | 134 | { |
| 132 | 135 | return $this->getMock('Swift_InputByteStream'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $this->markTestSkipped( |
| 14 | 14 | 'Will fail on travis-ci if not skipped due to travis blocking '. |
| 15 | 15 | 'socket mailing tcp connections.' |
| 16 | - ); |
|
| 16 | + ); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | $this->_buffer = new Swift_Transport_StreamBuffer( |
@@ -183,6 +183,10 @@ |
||
| 183 | 183 | |
| 184 | 184 | // -- Helpers |
| 185 | 185 | |
| 186 | + /** |
|
| 187 | + * @param string $pattern |
|
| 188 | + * @param Swift_ByteStream_ArrayByteStream $stream |
|
| 189 | + */ |
|
| 186 | 190 | public function assertPatternInStream($pattern, $stream, $message = '%s') |
| 187 | 191 | { |
| 188 | 192 | $string = ''; |
@@ -68,6 +68,9 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | // -- Custom Assertions |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $attachmentData |
|
| 73 | + */ |
|
| 71 | 74 | public function assertAttachmentFromSourceMatches($attachmentData, $source) |
| 72 | 75 | { |
| 73 | 76 | $encHeader = 'Content-Transfer-Encoding: base64'; |
@@ -104,6 +107,10 @@ discard block |
||
| 104 | 107 | fclose($fp); |
| 105 | 108 | } |
| 106 | 109 | |
| 110 | + /** |
|
| 111 | + * @param integer $size |
|
| 112 | + * @param string $attachmentPath |
|
| 113 | + */ |
|
| 107 | 114 | private function _createMessageWithRandomAttachment($size, $attachmentPath) |
| 108 | 115 | { |
| 109 | 116 | $this->_fillFileWithRandomBytes($size, $attachmentPath); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | $this->markTestSkipped( |
| 12 | 12 | 'Cannot run test without a writable directory to use ('. |
| 13 | 13 | 'define SWIFT_TMP_DIR in tests/config.php if you wish to run this test)' |
| 14 | - ); |
|
| 14 | + ); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | $this->_attachmentFile = SWIFT_TMP_DIR.'/attach.rand.bin'; |