@@ -15,7 +15,6 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * Create a new event instance. |
| 17 | 17 | * |
| 18 | - * @param Order $order |
|
| 19 | 18 | * @return void |
| 20 | 19 | */ |
| 21 | 20 | public function __construct(Response $paymentResponse) |
@@ -60,8 +60,9 @@ discard block |
||
| 60 | 60 | protected function initGoPay() |
| 61 | 61 | {
|
| 62 | 62 | $this->gopay = GoPay\Api::payments($this->config, $this->services); |
| 63 | - if($this->needReInit) |
|
| 64 | - $this->needReInit = false; |
|
| 63 | + if($this->needReInit) {
|
|
| 64 | + $this->needReInit = false; |
|
| 65 | + } |
|
| 65 | 66 | return $this->gopay; |
| 66 | 67 | } |
| 67 | 68 | |
@@ -122,7 +123,7 @@ discard block |
||
| 122 | 123 | if($this->logClosure == null) {
|
| 123 | 124 | |
| 124 | 125 | $this->logsBefore[] = [$request, $response]; |
| 125 | - }else{
|
|
| 126 | + } else{
|
|
| 126 | 127 | call_user_func($this->logClosure, $request, $response); |
| 127 | 128 | } |
| 128 | 129 | } |