Passed
Pull Request — master (#26)
by
unknown
01:58
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/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/views/getOrderView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <!DOCTYPE HTML>
2 2
 <html lang="en">
3 3
 <head>
4
-    <?php include(__DIR__.'/sections/header.php')?>
4
+    <?php include(__DIR__ . '/sections/header.php')?>
5 5
             <title> Get Order by ID</title>
6 6
         </head>
7 7
 <body>
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                 echo showKeysMissingErrorMessage();
16 16
             } ?>
17 17
         </div>
18
-        <?php include(__DIR__.'/sections/navBar.php') ?>
18
+        <?php include(__DIR__ . '/sections/navBar.php') ?>
19 19
 
20 20
         <div class="col-md-auto">
21 21
             <div class="row justify-content-center">
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 </div>
68 68
 </results>
69 69
 
70
-    <?php include(__DIR__.'/sections/footer.php') ?>
70
+    <?php include(__DIR__ . '/sections/footer.php') ?>
71 71
 
72 72
 </body>
73 73
 </html>
74 74
\ No newline at end of file
Please login to merge, or discard this patch.
examples/views/refundOrderView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <!DOCTYPE HTML>
2 2
 <html lang="en">
3 3
 <head>
4
-    <?php include(__DIR__.'/sections/header.php')?>
4
+    <?php include(__DIR__ . '/sections/header.php')?>
5 5
     <title> Refund Order ID</title>
6 6
 </head>
7 7
 <body>
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
                 echo showKeysMissingErrorMessage();
15 15
             } ?>
16 16
         </div>
17
-        <?php include(__DIR__.'/sections/navBar.php') ?>
17
+        <?php include(__DIR__ . '/sections/navBar.php') ?>
18 18
 
19 19
         <div class="col-md-auto">
20 20
             <div class="row justify-content-center">
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             <?php endif; ?>
68 68
     </results>
69 69
 
70
-        <?php include(__DIR__.'/sections/footer.php') ?>
70
+        <?php include(__DIR__ . '/sections/footer.php') ?>
71 71
 
72 72
 </div>
73 73
 </body>
Please login to merge, or discard this patch.
examples/views/listOrdersView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <!DOCTYPE HTML>
2 2
 <html lang="en">
3 3
 <head>
4
-    <?php include(__DIR__.'/sections/header.php')?>
4
+    <?php include(__DIR__ . '/sections/header.php')?>
5 5
     <title> List orders by Status</title>
6 6
 </head>
7 7
 <body>
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 echo showKeysMissingErrorMessage();
14 14
             } ?>
15 15
         </div>
16
-        <?php include(__DIR__.'/sections/navBar.php') ?>
16
+        <?php include(__DIR__ . '/sections/navBar.php') ?>
17 17
         <div class="col-md-auto">
18 18
             <div class="row justify-content-center">
19 19
                 <h5>List Orders Example</h5>
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             </div>
75 75
     </alertBoxes>
76 76
 
77
-        <?php include(__DIR__.'/sections/footer.php') ?>
77
+        <?php include(__DIR__ . '/sections/footer.php') ?>
78 78
 
79 79
 </div>
80 80
 </body>
Please login to merge, or discard this patch.
examples/views/confirmOrderView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <!DOCTYPE HTML>
2 2
 <html lang="en">
3 3
 <head>
4
-    <?php include(__DIR__.'/sections/header.php')?>
4
+    <?php include(__DIR__ . '/sections/header.php')?>
5 5
     <title>Confirm Orders</title>
6 6
 </head>
7 7
 <body>
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
                 echo showKeysMissingErrorMessage();
15 15
             } ?>
16 16
         </div>
17
-        <?php include(__DIR__.'/sections/navBar.php') ?>
17
+        <?php include(__DIR__ . '/sections/navBar.php') ?>
18 18
 
19 19
         <div class="col-md-auto">
20 20
             <div class="row justify-content-center">
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         </div>
94 94
     </alertBoxes>
95 95
 
96
-        <?php include(__DIR__.'/sections/footer.php') ?>/sections/footer.php') ?>
96
+        <?php include(__DIR__ . '/sections/footer.php') ?>/sections/footer.php') ?>
97 97
 
98 98
 </div>
99 99
 </body>
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
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 /**
5 5
  * PLEASE SET YOUR PUBLIC KEY AND PRIVATE KEY
6 6
  */
7
-const PUBLIC_KEY = '';   //Set your public key
8
-const PRIVATE_KEY = '';             //Set your public key
7
+const PUBLIC_KEY = ''; //Set your public key
8
+const PRIVATE_KEY = ''; //Set your public key
9 9
 
10 10
 
11 11
 /**
Please login to merge, or discard this patch.