@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * Add a MimePart to this Message. |
80 | 80 | * |
81 | - * @param string|Swift_OutputByteStream $body |
|
81 | + * @param string $body |
|
82 | 82 | * @param string $contentType |
83 | 83 | * @param string $charset |
84 | 84 | * |
@@ -33,8 +33,6 @@ |
||
33 | 33 | /** |
34 | 34 | * Encode stream $in to stream $out. |
35 | 35 | * |
36 | - * @param Swift_OutputByteStream $in |
|
37 | - * @param Swift_InputByteStream $out |
|
38 | 36 | * @param int $firstLineOffset ignored |
39 | 37 | * @param int $maxLineLength ignored |
40 | 38 | */ |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param Swift_Mime_Header $header |
277 | 277 | * @param string $input |
278 | - * @param string $usedLength optional |
|
278 | + * @param integer $usedLength optional |
|
279 | 279 | * |
280 | 280 | * @return string |
281 | 281 | */ |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * |
317 | 317 | * @param string $token |
318 | 318 | * |
319 | - * @return bool |
|
319 | + * @return integer |
|
320 | 320 | */ |
321 | 321 | protected function tokenNeedsEncoding($token) |
322 | 322 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @throws Swift_RfcComplianceException |
72 | 72 | * |
73 | - * @return array |
|
73 | + * @return string[] |
|
74 | 74 | */ |
75 | 75 | public function getFieldBodyModel() |
76 | 76 | { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @see getNameAddresses() |
198 | 198 | * |
199 | - * @return string[] |
|
199 | + * @return integer[] |
|
200 | 200 | */ |
201 | 201 | public function getAddresses() |
202 | 202 | { |
@@ -33,8 +33,6 @@ |
||
33 | 33 | * Creates a new SimpleHeader with $name. |
34 | 34 | * |
35 | 35 | * @param string $name |
36 | - * @param Swift_Mime_HeaderEncoder $encoder |
|
37 | - * @param Swift_Mime_Grammar $grammar |
|
38 | 36 | */ |
39 | 37 | public function __construct($name) |
40 | 38 | { |
@@ -585,6 +585,7 @@ discard block |
||
585 | 585 | |
586 | 586 | /** |
587 | 587 | * Get the model data (usually an array or a string) for $field. |
588 | + * @param string $field |
|
588 | 589 | */ |
589 | 590 | protected function _getHeaderFieldModel($field) |
590 | 591 | { |
@@ -595,6 +596,7 @@ discard block |
||
595 | 596 | |
596 | 597 | /** |
597 | 598 | * Set the model data for $field. |
599 | + * @param string $field |
|
598 | 600 | */ |
599 | 601 | protected function _setHeaderFieldModel($field, $model) |
600 | 602 | { |
@@ -609,6 +611,8 @@ discard block |
||
609 | 611 | |
610 | 612 | /** |
611 | 613 | * Get the parameter value of $parameter on $field header. |
614 | + * @param string $field |
|
615 | + * @param string $parameter |
|
612 | 616 | */ |
613 | 617 | protected function _getHeaderParameter($field, $parameter) |
614 | 618 | { |
@@ -619,6 +623,8 @@ discard block |
||
619 | 623 | |
620 | 624 | /** |
621 | 625 | * Set the parameter value of $parameter on $field header. |
626 | + * @param string $field |
|
627 | + * @param string $parameter |
|
622 | 628 | */ |
623 | 629 | protected function _setHeaderParameter($field, $parameter, $value) |
624 | 630 | { |
@@ -714,6 +720,9 @@ discard block |
||
714 | 720 | } |
715 | 721 | } |
716 | 722 | |
723 | + /** |
|
724 | + * @param string $boundary |
|
725 | + */ |
|
717 | 726 | private function _assertValidBoundary($boundary) |
718 | 727 | { |
719 | 728 | if (!preg_match( |
@@ -735,6 +744,9 @@ discard block |
||
735 | 744 | $this->_nestingLevel = $level; |
736 | 745 | } |
737 | 746 | |
747 | + /** |
|
748 | + * @param Swift_Mime_MimeEntity[] $children |
|
749 | + */ |
|
738 | 750 | private function _getCompoundLevel($children) |
739 | 751 | { |
740 | 752 | $level = 0; |
@@ -745,6 +757,9 @@ discard block |
||
745 | 757 | return $level; |
746 | 758 | } |
747 | 759 | |
760 | + /** |
|
761 | + * @param integer $compoundLevel |
|
762 | + */ |
|
748 | 763 | private function _getNeededChildLevel($child, $compoundLevel) |
749 | 764 | { |
750 | 765 | $filter = array(); |
@@ -778,6 +793,9 @@ discard block |
||
778 | 793 | } |
779 | 794 | } |
780 | 795 | |
796 | + /** |
|
797 | + * @param string $charset |
|
798 | + */ |
|
781 | 799 | private function _notifyCharsetChanged($charset) |
782 | 800 | { |
783 | 801 | $this->_encoder->charsetChanged($charset); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * @param string $contentType |
51 | 51 | * @param string $charset |
52 | 52 | * |
53 | - * @return Swift_Mime_MimePart |
|
53 | + * @return Swift_Mime_MimeEntity |
|
54 | 54 | */ |
55 | 55 | public static function newInstance($body = null, $contentType = null, $charset = null) |
56 | 56 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * Create a new RedirectingPlugin. |
34 | 34 | * |
35 | 35 | * @param mixed $recipient |
36 | - * @param array $whitelist |
|
36 | + * @param string[] $whitelist |
|
37 | 37 | */ |
38 | 38 | public function __construct($recipient, array $whitelist = array()) |
39 | 39 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * Set the recipient of all messages. |
46 | 46 | * |
47 | - * @param mixed $recipient |
|
47 | + * @param string $recipient |
|
48 | 48 | */ |
49 | 49 | public function setRecipient($recipient) |
50 | 50 | { |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | /** |
395 | 395 | * Set the signature timestamp. |
396 | 396 | * |
397 | - * @param timestamp $time |
|
397 | + * @param string $time |
|
398 | 398 | * |
399 | 399 | * @return Swift_Signers_DKIMSigner |
400 | 400 | */ |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | /** |
462 | 462 | * Returns the list of Headers Tampered by this plugin. |
463 | 463 | * |
464 | - * @return array |
|
464 | + * @return string[] |
|
465 | 465 | */ |
466 | 466 | public function getAlteredHeaders() |
467 | 467 | { |
@@ -655,6 +655,9 @@ discard block |
||
655 | 655 | $this->_bodyHash = hash_final($this->_bodyHashHandler, true); |
656 | 656 | } |
657 | 657 | |
658 | + /** |
|
659 | + * @param string $string |
|
660 | + */ |
|
658 | 661 | private function _addToBodyHash($string) |
659 | 662 | { |
660 | 663 | $len = strlen($string); |