Skip to content

Commit

Permalink
Coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
czigor committed Jul 13, 2018
1 parent 16e1e3c commit f7d62f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Response/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public function getMessages()
*/
public function getMessageCode()
{
if (is_array($this->contents->transactionResponse->messages->message)) {
return $this->contents->transactionResponse->messages->message[0]->code;
} else {
return $this->contents->transactionResponse->messages->message->code;
}
if (is_array($this->contents->transactionResponse->messages->message)) {
return $this->contents->transactionResponse->messages->message[0]->code;
} else {
return $this->contents->transactionResponse->messages->message->code;
}
}

public function getErrors()
Expand Down

0 comments on commit f7d62f8

Please sign in to comment.