Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 23, 2015
1 parent 779091c commit f387b08
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions framework/Imap_Client/lib/Horde/Imap/Client/Data/Fetch.php
Expand Up @@ -54,7 +54,12 @@ public function setFullMsg($msg)
*/
public function getFullMsg($stream = false)
{
return $this->_msgText($stream, isset($this->_data[Horde_Imap_Client::FETCH_FULLMSG]) ? $this->_data[Horde_Imap_Client::FETCH_FULLMSG] : null);
return $this->_msgText(
$stream,
isset($this->_data[Horde_Imap_Client::FETCH_FULLMSG])
? $this->_data[Horde_Imap_Client::FETCH_FULLMSG]
: null
);
}

/**
Expand Down Expand Up @@ -104,7 +109,11 @@ public function setHeaders($label, $data)
*/
public function getHeaders($label, $format = 0)
{
return $this->_getHeaders($label, $format, Horde_Imap_Client::FETCH_HEADERS);
return $this->_getHeaders(
$label,
$format,
Horde_Imap_Client::FETCH_HEADERS
);
}

/**
Expand All @@ -131,7 +140,11 @@ public function setHeaderText($id, $text)
*/
public function getHeaderText($id = 0, $format = 0)
{
return $this->_getHeaders($id, $format, Horde_Imap_Client::FETCH_HEADERTEXT);
return $this->_getHeaders(
$id,
$format,
Horde_Imap_Client::FETCH_HEADERTEXT
);
}

/**
Expand All @@ -158,7 +171,11 @@ public function setMimeHeader($id, $text)
*/
public function getMimeHeader($id, $format = 0)
{
return $this->_getHeaders($id, $format, Horde_Imap_Client::FETCH_MIMEHEADER);
return $this->_getHeaders(
$id,
$format,
Horde_Imap_Client::FETCH_MIMEHEADER
);
}

/**
Expand Down Expand Up @@ -198,7 +215,12 @@ public function setBodyPartSize($id, $size)
*/
public function getBodyPart($id, $stream = false)
{
return $this->_msgText($stream, isset($this->_data[Horde_Imap_Client::FETCH_BODYPART][$id]) ? $this->_data[Horde_Imap_Client::FETCH_BODYPART][$id]['t'] : null);
return $this->_msgText(
$stream,
isset($this->_data[Horde_Imap_Client::FETCH_BODYPART][$id])
? $this->_data[Horde_Imap_Client::FETCH_BODYPART][$id]['t']
: null
);
}

/**
Expand Down Expand Up @@ -251,7 +273,12 @@ public function setBodyText($id, $text)
*/
public function getBodyText($id = 0, $stream = false)
{
return $this->_msgText($stream, isset($this->_data[Horde_Imap_Client::FETCH_BODYTEXT][$id]) ? $this->_data[Horde_Imap_Client::FETCH_BODYTEXT][$id] : null);
return $this->_msgText(
$stream,
isset($this->_data[Horde_Imap_Client::FETCH_BODYTEXT][$id])
? $this->_data[Horde_Imap_Client::FETCH_BODYTEXT][$id]
: null
);
}

/**
Expand Down Expand Up @@ -462,7 +489,10 @@ public function getRawData()
*/
public function merge(Horde_Imap_Client_Data_Fetch $data)
{
$this->_data = array_replace_recursive($this->_data, $data->getRawData());
$this->_data = array_replace_recursive(
$this->_data,
$data->getRawData()
);
}

/**
Expand Down Expand Up @@ -552,7 +582,9 @@ protected function _getHeaders($id, $format, $key)
} elseif (is_object($this->_data[$key][$id])) {
return clone $this->_data[$key][$id];
}
return Horde_Mime_Headers::parseHeaders($this->_getHeaders($id, self::HEADER_STREAM, $key));
return Horde_Mime_Headers::parseHeaders(
$this->_getHeaders($id, self::HEADER_STREAM, $key)
);
}

if (!isset($this->_data[$key][$id])) {
Expand Down

0 comments on commit f387b08

Please sign in to comment.