Passed
Pull Request — master (#26)
by
unknown
01:44
created
src/Model/Order/Configuration.php 1 patch
Indentation   +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.
examples/createOrder.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
     $orderShippingAddress = new \Pagantis\OrdersApiClient\Model\Order\User\Address();
175 175
 
176 176
     $orderShippingAddress->setZipCode('08029')->setFullName('Alberto Escudero Sanchez')
177
-                         ->setCountryCode('ES')->setCity('Barcelona')
178
-                         ->setAddress('Avenida de la diagonal 525')->setDni('77695544A')
179
-                         ->setNationalId('59661738Z')->setFixPhone('931232345')
180
-                         ->setMobilePhone('600123124');
177
+                            ->setCountryCode('ES')->setCity('Barcelona')
178
+                            ->setAddress('Avenida de la diagonal 525')->setDni('77695544A')
179
+                            ->setNationalId('59661738Z')->setFixPhone('931232345')
180
+                            ->setMobilePhone('600123124');
181 181
     return $orderShippingAddress;
182 182
 }
183 183
 
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 {
195 195
     $orderUser = new \Pagantis\OrdersApiClient\Model\Order\User();
196 196
     $orderUser->setFullName('María Sanchez Escudero')->setAddress($userAddress)
197
-              ->setBillingAddress($orderBillingAddress)->setShippingAddress($orderShippingAddress)
198
-              ->setDateOfBirth('1985-12-30')->setEmail('[email protected]')->setFixPhone('911231234')
199
-              ->setMobilePhone('600123123')->setDni('59661738Z')->setNationalId('59661738Z');
197
+                ->setBillingAddress($orderBillingAddress)->setShippingAddress($orderShippingAddress)
198
+                ->setDateOfBirth('1985-12-30')->setEmail('[email protected]')->setFixPhone('911231234')
199
+                ->setMobilePhone('600123123')->setDni('59661738Z')->setNationalId('59661738Z');
200 200
     return $orderUser;
201 201
 }
202 202
 
@@ -248,8 +248,8 @@  discard block
 block discarded – undo
248 248
     $orderShoppingCart = new \Pagantis\OrdersApiClient\Model\Order\ShoppingCart();
249 249
 
250 250
     $orderShoppingCart->setDetails($details)->setOrderReference($orderID)
251
-                      ->setPromotedAmount(0) // This amount means that the merchant will assume the interests.
252
-                      ->setTotalAmount('59999');
251
+                        ->setPromotedAmount(0) // This amount means that the merchant will assume the interests.
252
+                        ->setTotalAmount('59999');
253 253
     return $orderShoppingCart;
254 254
 }
255 255
 
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
 
264 264
     $orderConfigurationUrls = new \Pagantis\OrdersApiClient\Model\Order\Configuration\Urls();
265 265
     $orderConfigurationUrls->setCancel($errorUrl)->setKo($errorUrl)
266
-                           ->setAuthorizedNotificationCallback($confirmUrl)
267
-                           ->setRejectedNotificationCallback($confirmUrl)->setOk($confirmUrl);
266
+                            ->setAuthorizedNotificationCallback($confirmUrl)
267
+                            ->setRejectedNotificationCallback($confirmUrl)->setOk($confirmUrl);
268 268
     return $orderConfigurationUrls;
269 269
 }
270 270
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 {
276 276
     $orderChannel = new \Pagantis\OrdersApiClient\Model\Order\Configuration\Channel();
277 277
     $orderChannel->setAssistedSale(false)
278
-                 ->setType(\Pagantis\OrdersApiClient\Model\Order\Configuration\Channel::ONLINE);
278
+                    ->setType(\Pagantis\OrdersApiClient\Model\Order\Configuration\Channel::ONLINE);
279 279
     return $orderChannel;
280 280
 }
281 281
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 {
309 309
     $order = new \Pagantis\OrdersApiClient\Model\Order();
310 310
     $order->setConfiguration($orderConfiguration)->setShoppingCart($orderShoppingCart)
311
-          ->setUser($orderUser);
311
+            ->setUser($orderUser);
312 312
     return $order;
313 313
 }
314 314
 
Please login to merge, or discard this patch.