Skip to content

Commit 09eb28d

Browse files
committed
Typos fixed
1 parent c888a38 commit 09eb28d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Connection/Protocols/ImapProtocol.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,22 @@ public function readResponse($tag, $dontParse = false) {
252252
}
253253

254254
if ($dontParse) {
255-
// last to chars are still needed for response code
255+
// First two chars are still needed for the response code
256256
$tokens = [substr($tokens, 0, 2)];
257257
}
258258
if (is_array($lines)){
259259
if ($this->debug) echo "<< ".json_encode($lines)."\n";
260260
}else{
261261
if ($this->debug) echo "<< ".$lines."\n";
262262
}
263+
263264
// last line has response code
264265
if ($tokens[0] == 'OK') {
265266
return $lines ? $lines : true;
266267
} elseif ($tokens[0] == 'NO') {
267268
return false;
268269
}
270+
269271
return;
270272
}
271273

@@ -787,7 +789,7 @@ public function appendMessage($folder, $message, $flags = null, $date = null) {
787789
}
788790

789791
/**
790-
* Copy message set from current folder to other folder
792+
* Copy a message set from current folder to an other folder
791793
* @param string $folder destination folder
792794
* @param $from
793795
* @param int|null $to if null only one message ($from) is fetched, else it's the

0 commit comments

Comments
 (0)