@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $statusPhrase = $this->status[$statusCode]; |
67 | 67 | } |
68 | 68 | parent::__construct($statusPhrase, $statusCode); |
69 | - $header = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase); |
|
69 | + $header = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase); |
|
70 | 70 | $this->addHeader($header); |
71 | 71 | $this->addHeaders($headers); |
72 | 72 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | foreach ($headers as $key => $header) { |
104 | 104 | if (!is_int($key)) { |
105 | - $header = $key.': '.$header; |
|
105 | + $header = $key . ': ' . $header; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $this->addHeader($header); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $orderArray = json_decode($refundedOrder, true); |
48 | 48 | |
49 | 49 | writeLog(count($orderArray['refunds']) . ' refunds found ', $logsFileName, $logsWithDate); |
50 | - print("<legend>" . count($orderArray['refunds']) . ' refund(s) found '. "</legend>"); |
|
50 | + print("<legend>" . count($orderArray['refunds']) . ' refund(s) found ' . "</legend>"); |
|
51 | 51 | |
52 | 52 | print("<pre>" . jsonEncoded($orderArray['refunds']) . "</pre>"); |
53 | 53 | } catch (\Exception $exception) { |
@@ -200,7 +200,7 @@ |
||
200 | 200 | /* The order has been marked as paid and confirmed in Pagantis so you will send the product to your customer and |
201 | 201 | * Pagantis will pay you in the next 24h. |
202 | 202 | */ |
203 | - $_SESSION['success_message'] = 'Order ' . $order->getId() .' has been confirmed'; |
|
203 | + $_SESSION['success_message'] = 'Order ' . $order->getId() . ' has been confirmed'; |
|
204 | 204 | $_SESSION['confirmed_order_id'] = $order->getId(); |
205 | 205 | header('Location:' . 'http://0.0.0.0:8000'); |
206 | 206 | } else { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | * PLEASE SET YOUR PUBLIC KEY AND PRIVATE KEY |
6 | 6 | */ |
7 | 7 | |
8 | -const PUBLIC_KEY = ''; //Set your public key |
|
9 | -const PRIVATE_KEY = ''; //Set your public key |
|
8 | +const PUBLIC_KEY = ''; //Set your public key |
|
9 | +const PRIVATE_KEY = ''; //Set your public key |
|
10 | 10 | |
11 | 11 | |
12 | 12 | /** |