Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
Gonzalo De Spirito authored and StyleCIBot committed Jun 24, 2021
1 parent 84b6b5e commit 4c292e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Webpay/WebpayPlus/MallTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public function create($buyOrder, $sessionId, $returnUrl, $details)
*/
public function commit($token)
{
if (!is_string($token)){
if (!is_string($token)) {
throw new InvalidArgumentException('Token parameter given is not string.');
}
if (!isset($token) || trim($token) === ''){
if (!isset($token) || trim($token) === '') {
throw new InvalidArgumentException('Token parameter given is empty.');
}

try {
$response = $this->sendRequest(
'PUT',
Expand Down
6 changes: 3 additions & 3 deletions src/Webpay/WebpayPlus/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ public function create($buyOrder, $sessionId, $amount, $returnUrl)
*/
public function commit($token)
{
if (!is_string($token)){
if (!is_string($token)) {
throw new InvalidArgumentException('Token parameter given is not string.');
}
if (!isset($token) || trim($token) === ''){
if (!isset($token) || trim($token) === '') {
throw new InvalidArgumentException('Token parameter given is empty.');
}

try {
$response = $this->sendRequest(
'PUT',
Expand Down

0 comments on commit 4c292e4

Please sign in to comment.