Skip to content

Commit 2b5dda2

Browse files
committed
formatting
1 parent 1eab980 commit 2b5dda2

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/Query/Query.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,18 @@ protected function fetch($available_messages) {
256256
* @throws GetMessagesFailedException
257257
* @throws ReflectionException
258258
*/
259-
protected function make($uid, $msglist, $header, $content, $flags){
259+
protected function make($uid, $msglist, $header, $content, $flags) {
260260
try {
261261
return Message::make($uid, $msglist, $this->getClient(), $header, $content, $flags, $this->getFetchOptions(), $this->sequence);
262-
}catch (MessageNotFoundException $e) {
262+
} catch (MessageNotFoundException $e) {
263263
$this->setError($uid, $e);
264-
}catch (RuntimeException $e) {
264+
} catch (RuntimeException $e) {
265265
$this->setError($uid, $e);
266-
}catch (MessageFlagException $e) {
266+
} catch (MessageFlagException $e) {
267267
$this->setError($uid, $e);
268-
}catch (InvalidMessageDateException $e) {
268+
} catch (InvalidMessageDateException $e) {
269269
$this->setError($uid, $e);
270-
}catch (MessageContentFetchingException $e) {
270+
} catch (MessageContentFetchingException $e) {
271271
$this->setError($uid, $e);
272272
}
273273

@@ -284,7 +284,7 @@ protected function make($uid, $msglist, $header, $content, $flags){
284284
*
285285
* @return string
286286
*/
287-
protected function getMessageKey($message_key, $msglist, $message){
287+
protected function getMessageKey($message_key, $msglist, $message) {
288288
switch ($message_key) {
289289
case 'number':
290290
$key = $message->getMessageNo();
@@ -755,18 +755,18 @@ public function fetchOrderDesc() {
755755
}
756756

757757
/**
758+
* @return Query
758759
* @var boolean $state
759760
*
760-
* @return Query
761761
*/
762762
public function softFail($state = true) {
763763
return $this->setSoftFail($state);
764764
}
765765

766766
/**
767+
* @return Query
767768
* @var boolean $state
768769
*
769-
* @return Query
770770
*/
771771
public function setSoftFail($state = true) {
772772
$this->soft_fail = $state;
@@ -805,11 +805,11 @@ protected function setError($uid, $error) {
805805

806806
/**
807807
* Check if there are any errors / exceptions present
808+
* @return boolean
808809
* @var integer|null $uid
809810
*
810-
* @return boolean
811811
*/
812-
public function hasErrors($uid = null){
812+
public function hasErrors($uid = null) {
813813
if ($uid !== null) {
814814
return $this->hasError($uid);
815815
}
@@ -818,11 +818,11 @@ public function hasErrors($uid = null){
818818

819819
/**
820820
* Check if there is an error / exception present
821+
* @return boolean
821822
* @var integer $uid
822823
*
823-
* @return boolean
824824
*/
825-
public function hasError($uid){
825+
public function hasError($uid) {
826826
return isset($this->errors[$uid]);
827827
}
828828

@@ -831,7 +831,7 @@ public function hasError($uid){
831831
*
832832
* @return array
833833
*/
834-
public function errors(){
834+
public function errors() {
835835
return $this->getErrors();
836836
}
837837

@@ -840,27 +840,27 @@ public function errors(){
840840
*
841841
* @return array
842842
*/
843-
public function getErrors(){
843+
public function getErrors() {
844844
return $this->errors;
845845
}
846846

847847
/**
848848
* Get a specific error / exception
849+
* @return Exception|null
849850
* @var integer $uid
850851
*
851-
* @return Exception|null
852852
*/
853-
public function error($uid){
853+
public function error($uid) {
854854
return $this->getError($uid);
855855
}
856856

857857
/**
858858
* Get a specific error / exception
859+
* @return Exception|null
859860
* @var integer $uid
860861
*
861-
* @return Exception|null
862862
*/
863-
public function getError($uid){
863+
public function getError($uid) {
864864
if ($this->hasError($uid)) {
865865
return $this->errors[$uid];
866866
}

0 commit comments

Comments
 (0)