Passed
Pull Request — master (#12)
by
unknown
02:42
created
examples/simpleTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     //1. User Object
26 26
     writeLog('Creating User object');
27 27
     writeLog('Adding the address of the user');
28
-    $userAddress =  new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
28
+    $userAddress = new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
29 29
     $userAddress
30 30
         ->setZipCode('28031')
31 31
         ->setFullName('María Sanchez Escudero')
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     $orderBillingAddress = $userAddress;
40 40
 
41
-    $orderShippingAddress =  new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
41
+    $orderShippingAddress = new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
42 42
     $orderShippingAddress
43 43
         ->setZipCode('08029')
44 44
         ->setFullName('Alberto Escudero Sanchez')
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         ->setUser($orderUser);
123 123
 
124 124
     writeLog('Creating client variable');
125
-    if (PUBLICKEY=='' || PRIVATEKEY == '') {
125
+    if (PUBLICKEY == '' || PRIVATEKEY == '') {
126 126
         throw new \Exception('You need set the public and private key');
127 127
     }
128 128
     $orderClient = new \PagaMasTarde\OrdersApiClient\Client(PUBLICKEY, PRIVATEKEY);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
     // You can use our test credit cards to fill the Paga+Tarde form
142 142
     writeLog("Redirecting to Paga+Tarde form => $url");
143
-    header('Location:'. $url);
143
+    header('Location:' . $url);
144 144
 }
145 145
 
146 146
 function confirmOrder()
Please login to merge, or discard this patch.