Completed
Push — master ( 9f57e7...8daca8 )
by Cesar
11s
created
src/Exception/HttpException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
         parent::__construct($statusPhrase, $statusCode);
69 69
 
70
-        $header  = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase);
70
+        $header = sprintf('HTTP/1.1 %d %s', $statusCode, $statusPhrase);
71 71
 
72 72
         $this->addHeader($header);
73 73
         $this->addHeaders($headers);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         foreach ($headers as $key => $header) {
106 106
             if (!is_int($key)) {
107
-                $header = $key.': '.$header;
107
+                $header = $key . ': ' . $header;
108 108
             }
109 109
 
110 110
             $this->addHeader($header);
Please login to merge, or discard this patch.
src/Model/Order/Configuration/Channel.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
      * @param $assistedSale
48 48
      *
49 49
      * @return $this
50
-
51 50
      */
52 51
     public function setAssistedSale($assistedSale)
53 52
     {
Please login to merge, or discard this patch.
examples/simpleTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     //1. User Object
33 33
     writeLog('Creating User object');
34 34
     writeLog('Adding the address of the user');
35
-    $userAddress =  new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
35
+    $userAddress = new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
36 36
     $userAddress
37 37
         ->setZipCode('28031')
38 38
         ->setFullName('María Sanchez Escudero')
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     $orderBillingAddress = $userAddress;
47 47
 
48
-    $orderShippingAddress =  new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
48
+    $orderShippingAddress = new \PagaMasTarde\OrdersApiClient\Model\Order\User\Address();
49 49
     $orderShippingAddress
50 50
         ->setZipCode('08029')
51 51
         ->setFullName('Alberto Escudero Sanchez')
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         ->setUser($orderUser);
130 130
 
131 131
     writeLog('Creating OrdersApiClient');
132
-    if (PUBLIC_KEY=='' || PRIVATE_KEY == '') {
132
+    if (PUBLIC_KEY == '' || PRIVATE_KEY == '') {
133 133
         throw new \Exception('You need set the public and private key');
134 134
     }
135 135
     $orderClient = new \PagaMasTarde\OrdersApiClient\Client(PUBLIC_KEY, PRIVATE_KEY);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
     // You can use our test credit cards to fill the Paga+Tarde form
149 149
     writeLog("Redirecting to Paga+Tarde form => $url");
150
-    header('Location:'. $url);
150
+    header('Location:' . $url);
151 151
 }
152 152
 
153 153
 /**
Please login to merge, or discard this patch.