Completed
Push — master ( e62f85...378d8f )
by Cesar
15s queued 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
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     //1. User Object
34 34
     writeLog('Creating User object');
35 35
     writeLog('Adding the address of the user');
36
-    $userAddress =  new \Pagantis\OrdersApiClient\Model\Order\User\Address();
36
+    $userAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address();
37 37
     $userAddress
38 38
         ->setZipCode('28031')
39 39
         ->setFullName('María Sanchez Escudero')
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     $orderBillingAddress = $userAddress;
48 48
 
49
-    $orderShippingAddress =  new \Pagantis\OrdersApiClient\Model\Order\User\Address();
49
+    $orderShippingAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address();
50 50
     $orderShippingAddress
51 51
         ->setZipCode('08029')
52 52
         ->setFullName('Alberto Escudero Sanchez')
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         ->setUser($orderUser);
132 132
 
133 133
     writeLog('Creating OrdersApiClient');
134
-    if (PUBLIC_KEY=='' || PRIVATE_KEY == '') {
134
+    if (PUBLIC_KEY == '' || PRIVATE_KEY == '') {
135 135
         throw new \Exception('You need set the public and private key');
136 136
     }
137 137
     $orderClient = new \Pagantis\OrdersApiClient\Client(PUBLIC_KEY, PRIVATE_KEY);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
     // You can use our test credit cards to fill the Pagantis form
154 154
     writeLog("Redirecting to Pagantis form => $url");
155
-    header('Location:'. $url);
155
+    header('Location:' . $url);
156 156
 }
157 157
 
158 158
 /**
Please login to merge, or discard this patch.
src/Model/Order/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @var array $allowedCountries
32 32
      */
33
-    private $allowedCountries = array('IT','ES','PT','FR');
33
+    private $allowedCountries = array('IT', 'ES', 'PT', 'FR');
34 34
 
35 35
     /**
36 36
      * Configuration constructor.
Please login to merge, or discard this patch.