@@ -63,7 +63,7 @@ |
||
63 | 63 | * Returns all address parts in the header including all addresses that are |
64 | 64 | * in groups. |
65 | 65 | * |
66 | - * @return ZBateson\MailMimeParser\Header\Part\AddressPart[] |
|
66 | + * @return AddressPart[] |
|
67 | 67 | */ |
68 | 68 | public function getAddresses() |
69 | 69 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser\Header; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * element with all email addresses from this and any sub-groups. |
61 | 61 | * |
62 | 62 | * @param ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts |
63 | - * @return ZBateson\MailMimeParser\Header\Part\HeaderPart[] |
|
63 | + * @return \ZBateson\MailMimeParser\Header\Part\AddressGroupPart[] |
|
64 | 64 | */ |
65 | 65 | protected function processParts(array $parts) |
66 | 66 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser\Header\Consumer; |
8 | 8 | |
9 | 9 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param string $token |
70 | 70 | * @param bool $isLiteral |
71 | - * @return \ZBateson\MailMimeParser\Header\Part\MimeLiteralPart |
|
71 | + * @return \ZBateson\MailMimeParser\Header\Part\Token |
|
72 | 72 | */ |
73 | 73 | protected function getPartForToken($token, $isLiteral) |
74 | 74 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * array. |
97 | 97 | * |
98 | 98 | * @param ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts |
99 | - * @return ZBateson\MailMimeParser\Header\Part\HeaderPart[] |
|
99 | + * @return CommentPart[] |
|
100 | 100 | */ |
101 | 101 | protected function processParts(array $parts) |
102 | 102 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser\Header\Consumer; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\Part\LiteralPart; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * as an array with a single element. |
129 | 129 | * |
130 | 130 | * @param ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts |
131 | - * @return ZBateson\MailMimeParser\Header\Part\HeaderPart[] |
|
131 | + * @return \ZBateson\MailMimeParser\Header\Part\LiteralPart[] |
|
132 | 132 | */ |
133 | 133 | protected function processParts(array $parts) |
134 | 134 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser\Header\Consumer; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\Part\Token; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * Returns the text part (or null if none is set.) |
89 | 89 | * |
90 | - * @return \ZBateson\MailMimeParser\MimePart |
|
90 | + * @return resource |
|
91 | 91 | */ |
92 | 92 | public function getTextPart() |
93 | 93 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | /** |
98 | 98 | * Returns the HTML part (or null if none is set.) |
99 | 99 | * |
100 | - * @return \ZBateson\MailMimeParser\MimePart |
|
100 | + * @return resource |
|
101 | 101 | */ |
102 | 102 | public function getHtmlPart() |
103 | 103 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\HeaderFactory; |
@@ -138,7 +138,7 @@ |
||
138 | 138 | * The method will loop to read headers and find and parse multipart-mime |
139 | 139 | * message parts, adding them to the $message. |
140 | 140 | * |
141 | - * @param type $handle |
|
141 | + * @param resource $handle |
|
142 | 142 | * @param \ZBateson\MailMimeParser\Message $message |
143 | 143 | */ |
144 | 144 | protected function read($handle, Message $message) |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser; |
8 | 8 | |
9 | 9 | /** |
@@ -156,7 +156,7 @@ |
||
156 | 156 | * |
157 | 157 | * @param int $offset |
158 | 158 | * @param int $whence One of SEEK_SET, SEEK_CUR and SEEK_END. |
159 | - * @return boolean |
|
159 | + * @return boolean|null |
|
160 | 160 | */ |
161 | 161 | public function stream_seek($offset, $whence = SEEK_SET) |
162 | 162 | { |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser; |
8 | 8 | |
9 | 9 | /** |
@@ -176,18 +176,18 @@ discard block |
||
176 | 176 | break; |
177 | 177 | case SEEK_CUR: |
178 | 178 | if ($offset >= 0) { |
179 | - $this->position += $offset; |
|
180 | - return true; |
|
179 | + $this->position += $offset; |
|
180 | + return true; |
|
181 | 181 | } else { |
182 | - return false; |
|
182 | + return false; |
|
183 | 183 | } |
184 | 184 | break; |
185 | 185 | case SEEK_END: |
186 | 186 | if ($this->end + $offset >= $this->start) { |
187 | - $this->position = ($this->end - $this->start) + $offset; |
|
188 | - return true; |
|
187 | + $this->position = ($this->end - $this->start) + $offset; |
|
188 | + return true; |
|
189 | 189 | } else { |
190 | - return false; |
|
190 | + return false; |
|
191 | 191 | } |
192 | 192 | break; |
193 | 193 | default: |
@@ -169,7 +169,7 @@ |
||
169 | 169 | /** |
170 | 170 | * Returns the header consumer service |
171 | 171 | * |
172 | - * @return ZBateson\MailMimeParser\Header\Consumer\ConsumerService |
|
172 | + * @return ConsumerService |
|
173 | 173 | */ |
174 | 174 | public function getConsumerService() |
175 | 175 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\Consumer\ConsumerService; |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the ZBateson\MailMimeParser project. |
|
4 | - * |
|
5 | - * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | - */ |
|
3 | + * This file is part of the ZBateson\MailMimeParser project. |
|
4 | + * |
|
5 | + * @license http://opensource.org/licenses/bsd-license.php BSD |
|
6 | + */ |
|
7 | 7 | namespace ZBateson\MailMimeParser\Header; |
8 | 8 | |
9 | 9 | use ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer; |