Skip to content

Commit

Permalink
coding standard tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 15, 2014
1 parent 95818eb commit c2cc075
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -82,14 +82,14 @@ public function writeLiteral($data, $length, $binary = false)

if (!rewind($data)) {
throw new Horde_Imap_Client_Exception(
Horde_Imap_Client_Translation::r("Server write error (stream rewind failed)."),
Horde_Imap_Client_Translation::r("Server write error."),
Horde_Imap_Client_Exception::SERVER_WRITEERROR
);
}

while (!feof($data)) {
$read_data = fread($data, 8192);
if ($read_data === false || fwrite($this->_stream, $read_data) === false) {
if ((($read_data = fread($data, 8192)) === false) ||
(fwrite($this->_stream, $read_data) === false)) {
throw new Horde_Imap_Client_Exception(
Horde_Imap_Client_Translation::r("Server write error."),
Horde_Imap_Client_Exception::SERVER_WRITEERROR
Expand Down

0 comments on commit c2cc075

Please sign in to comment.