From 030dade51bf45b5c340c9f5d79c92b7a4a9240da Mon Sep 17 00:00:00 2001 From: Lewis Cowles Date: Sun, 24 May 2015 11:37:16 +0100 Subject: [PATCH] More PSR BS! --- src/Fetch/Server.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Fetch/Server.php b/src/Fetch/Server.php index 2ba2fa1..6700b98 100644 --- a/src/Fetch/Server.php +++ b/src/Fetch/Server.php @@ -321,18 +321,18 @@ class Server * @param string $mailbox the mailbox path if required to get sub-folder counts * @return int */ - public function numMessages( $mailbox='' ) + public function numMessages($mailbox='') { - $mboxExists = $this->hasMailbox( $mailbox ); - if( $mboxExists ) { + $mboxExists = $this->hasMailbox($mailbox); + if ($mboxExists){ $oldMailbox = $this->getMailBox(); - $this->setMailbox( $mailbox ); + $this->setMailbox($mailbox); } - $cnt = imap_num_msg( $this->getImapStream() ); - if( $mboxExists ) { - $this->setMailbox( $oldMailbox ); + $cnt = imap_num_msg($this->getImapStream()); + if ( $mboxExists ){ + $this->setMailbox($oldMailbox); } - return ( !$mboxExists && $mailbox !== '' ) ? 0 : $cnt; + return ((!$mboxExists && $mailbox !== '') ? 0 : $cnt); } /**