@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @param $data |
| 46 | 46 | * @return mixed |
| 47 | 47 | */ |
| 48 | - public function refundPayment($data){ |
|
| 48 | + public function refundPayment($data) { |
|
| 49 | 49 | return $this->dotpayApi->refundPayment($data); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -39,14 +39,14 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function __construct($operation_number, $data) |
| 41 | 41 | { |
| 42 | - if(!$operation_number){ |
|
| 42 | + if (!$operation_number) { |
|
| 43 | 43 | throw new RequestIntegrityException("Operation number is not set"); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $this->operation_number = $operation_number; |
| 47 | 47 | |
| 48 | 48 | foreach ($data as $key => $value) { |
| 49 | - if(!$value || is_numeric($value) && $value <= 0){ |
|
| 49 | + if (!$value || is_numeric($value) && $value <= 0) { |
|
| 50 | 50 | throw new RequestIntegrityException(); |
| 51 | 51 | } |
| 52 | 52 | $this->$key = $value; |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param $payment |
| 54 | 54 | * @return mixed |
| 55 | 55 | */ |
| 56 | - public function refundPayment($payment){ |
|
| 56 | + public function refundPayment($payment) { |
|
| 57 | 57 | return $this->client->makeRequest(new CreateRefund($this->config['shop_id'], $payment)); |
| 58 | 58 | } |
| 59 | 59 | |