| @@ -29,7 +29,7 @@ discard block | ||
| 29 | 29 |      { | 
| 30 | 30 |          $src = "https://www.payumoney.com/{$this->prefix()}payment/op/getPaymentResponse?"; | 
| 31 | 31 | |
| 32 | - return $src . http_build_query($this->fields()); | |
| 32 | + return $src.http_build_query($this->fields()); | |
| 33 | 33 | } | 
| 34 | 34 | |
| 35 | 35 | /** | 
| @@ -65,8 +65,8 @@ discard block | ||
| 65 | 65 | $response = ['status' => true, 'data' => [], 'message' => '']; | 
| 66 | 66 |          $collection = collect($data->result)->pluck('postBackParam', 'merchantTransactionId'); | 
| 67 | 67 | |
| 68 | -        foreach($this->txnIds as $id) { | |
| 69 | -            if (! empty($collection[$id])) { | |
| 68 | +        foreach ($this->txnIds as $id) { | |
| 69 | +            if (!empty($collection[$id])) { | |
| 70 | 70 | $response['data'][$id] = $this->getInstance($collection[$id]); | 
| 71 | 71 | } | 
| 72 | 72 | } | 
| @@ -75,8 +75,8 @@ | ||
| 75 | 75 | |
| 76 | 76 | $response = ['status' => true, 'data' => [], 'message' => '']; | 
| 77 | 77 | |
| 78 | -        foreach($this->txnIds as $id) { | |
| 79 | -            if (! empty($data->transaction_details->{$id})) { | |
| 78 | +        foreach ($this->txnIds as $id) { | |
| 79 | +            if (!empty($data->transaction_details->{$id})) { | |
| 80 | 80 |                  $response['data'][$id] = $this->getInstance($data->transaction_details->{$id}); | 
| 81 | 81 | } | 
| 82 | 82 | } | 
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | $request = new Request((array) $data); | 
| 41 | 41 | $attributes = (new Processor($request))->process(); | 
| 42 | 42 | |
| 43 | -        if($this->config->getDriver() == 'database') { | |
| 43 | +        if ($this->config->getDriver() == 'database') { | |
| 44 | 44 | return PayuPayment::find($attributes); | 
| 45 | 45 | } | 
| 46 | 46 | |