Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
miladkian committed Dec 29, 2019
1 parent 81f8ee6 commit ed2c7ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function make(string $adapter, TransactionInterface $invoice, array $adap
return $this;
}

public function verifyTransaction(Request $request,array $adapterConfig = [])
public function verifyTransaction(Request $request, array $adapterConfig = [])
{
//get gateway and transaction id from request
$gateway = $request->input('gateway');
Expand Down Expand Up @@ -105,11 +105,11 @@ public function verifyTransaction(Request $request,array $adapterConfig = [])
$transaction = LarapayTransaction::find($transactionId);
//transaction not found in our database
if (!$transaction) {
throw new TransactionNotFoundException(trans('larapay::larapay.transaction_not_found'),2);
throw new TransactionNotFoundException(trans('larapay::larapay.transaction_not_found'), 2);
}
//transaction gateway conflict
if ($transaction->gate_name != $gateway) {
throw new TransactionNotFoundException(trans('larapay::larapay.transaction_not_found'),3);
throw new TransactionNotFoundException(trans('larapay::larapay.transaction_not_found'), 3);
}

try {
Expand Down

0 comments on commit ed2c7ba

Please sign in to comment.