Skip to content

Commit 5aeb279

Browse files
committed
Typos fixed and docs extended
1 parent 7464e34 commit 5aeb279

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

src/Connection/Protocols/ImapProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public function examineFolder(string $folder = 'INBOX') {
563563
*
564564
* @return string|array if only one item of one message is fetched it's returned as string
565565
* if items of one message are fetched it's returned as (name => value)
566-
* if one items of messages are fetched it's returned as (msgno => value)
566+
* if one item of messages are fetched it's returned as (msgno => value)
567567
* if items of messages are fetched it's returned as (msgno => (name => value))
568568
* @throws RuntimeException
569569
*/

src/Connection/Protocols/Protocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class Protocol implements ProtocolInterface {
3838
protected $enable_uid_cache = true;
3939

4040
/**
41-
* @var false|resource
41+
* @var false|\IMAP\Connection|resource
4242
*/
4343
public $stream = false;
4444

src/Connection/Protocols/ProtocolInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getCapabilities(): array;
9090
* Change the current folder
9191
*
9292
* @param string $folder change to this folder
93-
* @return bool|array see examineOrselect()
93+
* @return bool|array see examineOrSelect()
9494
* @throws RuntimeException
9595
*/
9696
public function selectFolder(string $folder = 'INBOX');
@@ -224,7 +224,7 @@ public function copyMessage(string $folder, $from, $to = null, $uid = IMAP::ST_U
224224
public function copyManyMessages(array $messages, string $folder, $uid = IMAP::ST_UID);
225225

226226
/**
227-
* Move a message set from current folder to an other folder
227+
* Move a message set from current folder to another folder
228228
* @param string $folder destination folder
229229
* @param $from
230230
* @param int|null $to if null only one message ($from) is fetched, else it's the

src/Folder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function overview(string $sequence = null): array {
278278
*/
279279
public function appendMessage(string $message, array $options = null, $internal_date = null): bool {
280280
/**
281-
* Check if $internal_date is parsed. If it is null it should not be set. Otherwise the message can't be stored.
281+
* Check if $internal_date is parsed. If it is null it should not be set. Otherwise, the message can't be stored.
282282
* If this parameter is set, it will set the INTERNALDATE on the appended message. The parameter should be a
283283
* date string that conforms to the rfc2060 specifications for a date_time value or be a Carbon object.
284284
*/
@@ -377,6 +377,7 @@ public function idle(callable $callback, int $timeout = 300, bool $auto_reconnec
377377

378378
while (true) {
379379
try {
380+
// This polymorphic call is fine - Protocol::idle() will throw an exception beforehand
380381
$line = $connection->nextLine();
381382

382383
if (($pos = strpos($line, "EXISTS")) !== false) {

src/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function mime_header_decode(string $text): array {
347347
}
348348

349349
/**
350-
* Check if a given pair of strings has ben decoded
350+
* Check if a given pair of strings has been decoded
351351
* @param $encoded
352352
* @param $decoded
353353
*

src/Message.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
* @method Attribute getPriority()
5656
* @method Attribute getSubject()
5757
* @method Attribute getMessageId()
58+
* @method Attribute getMessageNo()
5859
* @method Attribute getReferences()
5960
* @method Attribute getDate()
6061
* @method Attribute getFrom()

src/Part.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected function parse(){
202202
}
203203

204204
/**
205-
* Find all available headers and return the left over body segment
205+
* Find all available headers and return the leftover body segment
206206
*
207207
* @return string
208208
* @throws InvalidMessageDateException

src/Query/Query.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ public function setClient(Client $client): Query {
711711
}
712712

713713
/**
714+
* Get the set fetch limit
714715
* @return int
715716
*/
716717
public function getLimit() {

0 commit comments

Comments
 (0)