Passed
Pull Request — master (#12)
by
unknown
02:42
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
@@ -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.