Passed
Pull Request — master (#26)
by
unknown
05:20 queued 03:29
created
src/Exception/HttpException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
examples/methods/refundOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
examples/methods/createOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
examples/utils/Helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.