Completed
Push — master ( 2b8ab9...8d0b83 )
by pablo
25s queued 16s
created
Block/Product/Simulator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      */
306 306
     public function getFinalPrice4x()
307 307
     {
308
-        return number_format($this->getProduct()->getFinalPrice()/4, 2);
308
+        return number_format($this->getProduct()->getFinalPrice() / 4, 2);
309 309
     }
310 310
 
311 311
     /**
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
         $minAmount = $this->getMinAmount();
543 543
         $totalPrice = (string) floor($this->getFinalPrice());
544 544
 
545
-        return ($totalPrice>=$minAmount && ($totalPrice<=$maxAmount||$maxAmount=='0'));
545
+        return ($totalPrice >= $minAmount && ($totalPrice <= $maxAmount || $maxAmount == '0'));
546 546
     }
547 547
 
548 548
     /**
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
         $minAmount = $this->getMinAmount4x();
555 555
         $totalPrice = (string) floor($this->getFinalPrice());
556 556
 
557
-        return ($totalPrice>=$minAmount && ($totalPrice<=$maxAmount||$maxAmount=='0'));
557
+        return ($totalPrice >= $minAmount && ($totalPrice <= $maxAmount || $maxAmount == '0'));
558 558
     }
559 559
 
560 560
     /**
Please login to merge, or discard this patch.
Setup/InstallData.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -16,28 +16,28 @@  discard block
 block discarded – undo
16 16
      * @var array $defaultConfigs
17 17
      */
18 18
     public $defaultConfigs = array(
19
-       'PAGANTIS_TITLE'=>'Instant financing',
20
-       'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.PRODUCT_PAGE',
21
-       'PAGANTIS_SIMULATOR_DISPLAY_TYPE_CHECKOUT'=>'sdk.simulator.types.CHECKOUT_PAGE',
22
-       'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE',
23
-       'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
24
-       'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
25
-       'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
26
-       'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
27
-       'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER',
28
-       'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
29
-       'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
30
-       'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
31
-       'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
32
-       'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
33
-       'PAGANTIS_URL_OK'=>'',
34
-       'PAGANTIS_URL_KO'=>'',
35
-       'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!',
36
-       'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}',
37
-       'PAGANTIS_PROMOTION_EXTRA' => '<p class="promoted">Finance this product <span class="pg-no-interest">without interest!</span></p>',
38
-       'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.',
39
-       'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',',
40
-       'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => '',
19
+        'PAGANTIS_TITLE'=>'Instant financing',
20
+        'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.PRODUCT_PAGE',
21
+        'PAGANTIS_SIMULATOR_DISPLAY_TYPE_CHECKOUT'=>'sdk.simulator.types.CHECKOUT_PAGE',
22
+        'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE',
23
+        'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
24
+        'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
25
+        'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
26
+        'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
27
+        'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER',
28
+        'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
29
+        'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
30
+        'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
31
+        'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
32
+        'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
33
+        'PAGANTIS_URL_OK'=>'',
34
+        'PAGANTIS_URL_KO'=>'',
35
+        'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!',
36
+        'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}',
37
+        'PAGANTIS_PROMOTION_EXTRA' => '<p class="promoted">Finance this product <span class="pg-no-interest">without interest!</span></p>',
38
+        'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.',
39
+        'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',',
40
+        'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => '',
41 41
         //4x
42 42
         'PAGANTIS_DISPLAY_MIN_AMOUNT_4x'=>0,
43 43
         'PAGANTIS_DISPLAY_MAX_AMOUNT_4x'=>800,
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if ($setup->tableExists($prefixedTableName)) {
55 55
             foreach ($this->defaultConfigs as $config => $value) {
56 56
                 $setup->getConnection()
57
-                      ->insert(self::CONFIG_TABLE, array('config' => $config, 'value' => $value));
57
+                        ->insert(self::CONFIG_TABLE, array('config' => $config, 'value' => $value));
58 58
             }
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
Observer/PaymentMethodAvailable.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public function execute(\Magento\Framework\Event\Observer $observer)
18 18
     {
19 19
         try {
20
-            if ($observer->getEvent()->getMethodInstance()->getCode()==ConfigProvider::CODE) {
20
+            if ($observer->getEvent()->getMethodInstance()->getCode() == ConfigProvider::CODE) {
21 21
                 $checkResult = $observer->getEvent()->getResult();
22 22
                 $totalPrice  = (string) floor($observer->getEvent()->getQuote()->getGrandTotal());
23 23
                 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
                 $availableCountry = (in_array(strtolower($locale), $allowedCountries));
30 30
                 $maxAmount = $extraConfig['PAGANTIS_DISPLAY_MAX_AMOUNT'];
31 31
                 $minAmount = $extraConfig['PAGANTIS_DISPLAY_MIN_AMOUNT'];
32
-                $validAmount = ($totalPrice>=$minAmount && ($totalPrice<=$maxAmount||$maxAmount=='0'));
32
+                $validAmount = ($totalPrice >= $minAmount && ($totalPrice <= $maxAmount || $maxAmount == '0'));
33 33
                 $disabledPg = (!isset($config['pagantis_public_key']) || $config['pagantis_public_key'] == '' ||
34 34
                                !isset($config['pagantis_private_key']) || $config['pagantis_private_key'] == '' ||
35
-                               !$availableCountry || !$validAmount || $config['active_12x']!=='1'
36
-                               || $config['active']!=='1' );
35
+                               !$availableCountry || !$validAmount || $config['active_12x'] !== '1'
36
+                               || $config['active'] !== '1');
37 37
                 if ($disabledPg) {
38 38
                     $checkResult->setData('is_available', false);
39 39
                 } else {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 }
42 42
             }
43 43
 
44
-            if ($observer->getEvent()->getMethodInstance()->getCode()==ConfigProvider::CODE4X) {
44
+            if ($observer->getEvent()->getMethodInstance()->getCode() == ConfigProvider::CODE4X) {
45 45
                 $checkResult = $observer->getEvent()->getResult();
46 46
                 $totalPrice  = (string) floor($observer->getEvent()->getQuote()->getGrandTotal());
47 47
                 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
                 $availableCountry = (in_array(strtolower($locale), $allowedCountries));
54 54
                 $maxAmount = $extraConfig['PAGANTIS_DISPLAY_MAX_AMOUNT_4x'];
55 55
                 $minAmount = $extraConfig['PAGANTIS_DISPLAY_MIN_AMOUNT_4x'];
56
-                $validAmount = ($totalPrice>=$minAmount && ($totalPrice<=$maxAmount||$maxAmount=='0'));
57
-                $disabledPg4x = (!isset($config['pagantis_public_key_4x']) || $config['pagantis_public_key_4x']=='' ||
58
-                                 !isset($config['pagantis_private_key_4x']) || $config['pagantis_private_key_4x']=='' ||
59
-                                 !$availableCountry || !$validAmount || $config['active_4x']!=='1'
60
-                                 || $config['active']!=='1' );
56
+                $validAmount = ($totalPrice >= $minAmount && ($totalPrice <= $maxAmount || $maxAmount == '0'));
57
+                $disabledPg4x = (!isset($config['pagantis_public_key_4x']) || $config['pagantis_public_key_4x'] == '' ||
58
+                                 !isset($config['pagantis_private_key_4x']) || $config['pagantis_private_key_4x'] == '' ||
59
+                                 !$availableCountry || !$validAmount || $config['active_4x'] !== '1'
60
+                                 || $config['active'] !== '1');
61 61
                 if ($disabledPg4x) {
62 62
                     $checkResult->setData('is_available', false);
63 63
                 } else {
Please login to merge, or discard this patch.
Controller/Notify/Index.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -589,11 +589,11 @@  discard block
 block discarded – undo
589 589
             }
590 590
 
591 591
             $this->magentoOrder->addStatusHistoryComment($metadataInfo)
592
-                               ->setIsCustomerNotified(false)
593
-                               ->setEntityName('order')
594
-                               ->setTitle($this->getProduct())
595
-                               ->setPayment($this->getProduct())
596
-                               ->save();
592
+                                ->setIsCustomerNotified(false)
593
+                                ->setEntityName('order')
594
+                                ->setTitle($this->getProduct())
595
+                                ->setPayment($this->getProduct())
596
+                                ->save();
597 597
 
598 598
             $comment = sprintf(
599 599
                 'pagantisOrderId: %s || pagantisOrderStatus: %s  || via: %s  || product: %s',
@@ -604,9 +604,9 @@  discard block
 block discarded – undo
604 604
             );
605 605
 
606 606
             $this->magentoOrder->addStatusHistoryComment($comment)
607
-                               ->setIsCustomerNotified(false)
608
-                               ->setEntityName('order')
609
-                               ->save();
607
+                                ->setIsCustomerNotified(false)
608
+                                ->setEntityName('order')
609
+                                ->save();
610 610
 
611 611
             if ($this->magentoOrderId == '') {
612 612
                 throw new UnknownException('Order can not be saved');
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $this->checkoutSession = $checkoutSession;
156 156
         $this->_request = $request;
157 157
         $this->origin = (
158
-            $this->_request->isPost() || $this->_request->getParam('origin')=='notification'
158
+            $this->_request->isPost() || $this->_request->getParam('origin') == 'notification'
159 159
         ) ? 'Notification' : 'Order';
160 160
         $this->product = $this->_request->getParam('product');
161 161
         $this->token = $this->_request->getParam('token');
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             $this->checkPagantisStatus(array('AUTHORIZED'));
322 322
         } catch (\Exception $e) {
323 323
             $this->getMagentoOrderId();
324
-            if ($this->magentoOrderId!='') {
324
+            if ($this->magentoOrderId != '') {
325 325
                 throw new AlreadyProcessedException();
326 326
             } else {
327 327
                 throw new WrongStatusException($this->pagantisOrder->getStatus());
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     private function checkMerchantOrderStatus()
336 336
     {
337
-        if ($this->quote->getIsActive()=='0') {
337
+        if ($this->quote->getIsActive() == '0') {
338 338
             $this->getMagentoOrderId();
339 339
             throw new AlreadyProcessedException();
340 340
         }
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
             $tableName    = $this->dbObject->getTableName(self::CONCURRENCY_TABLE);
467 467
             if ($mode == false) {
468 468
                 $dbConnection->delete($tableName, "timestamp<".(time() - 5));
469
-            } elseif ($this->quoteId!='') {
469
+            } elseif ($this->quoteId != '') {
470 470
                 $dbConnection->delete($tableName, "id=".$this->quoteId);
471 471
             }
472 472
         } catch (Exception $exception) {
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
                 $this->getPagantisOrderId();
506 506
                 $this->getMagentoOrderId();
507 507
 
508
-                $logMessage  = sprintf(
508
+                $logMessage = sprintf(
509 509
                     "User waiting %s seconds, default seconds %s, bd time to expire %s seconds[quoteId=%s][origin=%s]",
510 510
                     $expirationSec,
511 511
                     self::CONCURRENCY_TIMEOUT,
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
             if ($this->pagantisOrderId == '') {
557 557
                 $this->getPagantisOrderId();
558 558
             }
559
-            $pagantisOrderId   = $this->pagantisOrderId;
559
+            $pagantisOrderId = $this->pagantisOrderId;
560 560
 
561 561
             $query = sprintf(
562 562
                 "select mg_order_id from %s where id='%s' and order_id='%s' and token='%s'",
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
                 $pagantisOrderId,
566 566
                 $this->token
567 567
             );
568
-            $queryResult  = $dbConnection->fetchRow($query);
568
+            $queryResult = $dbConnection->fetchRow($query);
569 569
             $this->magentoOrderId = $queryResult['mg_order_id'];
570 570
         } catch (\Exception $e) {
571 571
             throw new UnknownException($e->getMessage());
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
             $metadataInfo = null;
590 590
             foreach ($metadataOrder as $metadataKey => $metadataValue) {
591 591
                 if ($metadataKey == 'promotedProduct') {
592
-                    $metadataInfo.= " Producto promocionado = $metadataValue //";
592
+                    $metadataInfo .= " Producto promocionado = $metadataValue //";
593 593
                 }
594 594
             }
595 595
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
             /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
631 631
             $dbConnection = $this->dbObject->getConnection();
632 632
             $tableName    = $this->dbObject->getTableName(self::ORDERS_TABLE);
633
-            $pagantisOrderId   = $this->pagantisOrder->getId();
633
+            $pagantisOrderId = $this->pagantisOrder->getId();
634 634
             $dbConnection->update(
635 635
                 $tableName,
636 636
                 array('mg_order_id' => $this->magentoOrderId),
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
             $this->getMagentoOrderId();
707 707
         }
708 708
 
709
-        if ($this->magentoOrderId!='') {
709
+        if ($this->magentoOrderId != '') {
710 710
             /** @var Order $this->magentoOrder */
711 711
             $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId);
712 712
             if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) {
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
             $orderStatus    = strtolower($this->magentoOrder->getStatus());
733 733
             $acceptedStatus = array('processing', 'completed');
734 734
             if (in_array($orderStatus, $acceptedStatus)) {
735
-                if (isset($this->extraConfig['PAGANTIS_OK_URL']) &&  $this->extraConfig['PAGANTIS_OK_URL']!= '') {
735
+                if (isset($this->extraConfig['PAGANTIS_OK_URL']) && $this->extraConfig['PAGANTIS_OK_URL'] != '') {
736 736
                     $returnUrl = $this->extraConfig['PAGANTIS_OK_URL'];
737 737
                 } else {
738 738
                     $returnUrl = 'checkout/onepage/success';
Please login to merge, or discard this patch.
Controller/Notify/IndexV2.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -607,9 +607,9 @@  discard block
 block discarded – undo
607 607
             }
608 608
 
609 609
             $this->magentoOrder->addStatusHistoryComment($metadataInfo)
610
-                               ->setIsCustomerNotified(false)
611
-                               ->setEntityName('order')
612
-                               ->save();
610
+                                ->setIsCustomerNotified(false)
611
+                                ->setEntityName('order')
612
+                                ->save();
613 613
 
614 614
             $comment = sprintf(
615 615
                 'pagantisOrderId: %s || pagantisOrderStatus: %s  || via: %s  || product: %s',
@@ -620,9 +620,9 @@  discard block
 block discarded – undo
620 620
             );
621 621
 
622 622
             $this->magentoOrder->addStatusHistoryComment($comment)
623
-                               ->setIsCustomerNotified(false)
624
-                               ->setEntityName('order')
625
-                               ->save();
623
+                                ->setIsCustomerNotified(false)
624
+                                ->setEntityName('order')
625
+                                ->save();
626 626
 
627 627
             if ($this->magentoOrderId == '') {
628 628
                 throw new UnknownException('Order can not be saved');
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $this->checkoutSession = $checkoutSession;
158 158
         $this->_request = $request;
159 159
         $this->origin = (
160
-            $this->_request->isPost() || $this->_request->getParam('origin')=='notification'
160
+            $this->_request->isPost() || $this->_request->getParam('origin') == 'notification'
161 161
                         ) ? 'Notification' : 'Order';
162 162
         $this->product = $this->_request->getParam('product');
163 163
         $this->token = $this->_request->getParam('token');
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     private function getPagantisOrder()
314 314
     {
315 315
         try {
316
-            if ($this->getProduct()===ConfigProvider::CODE4X) {
316
+            if ($this->getProduct() === ConfigProvider::CODE4X) {
317 317
                 $this->orderClient = new Client(
318 318
                     $this->config['pagantis_public_key_4x'],
319 319
                     $this->config['pagantis_private_key_4x']
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             $this->checkPagantisStatus(array('AUTHORIZED'));
341 341
         } catch (\Exception $e) {
342 342
             $this->getMagentoOrderId();
343
-            if ($this->magentoOrderId!='') {
343
+            if ($this->magentoOrderId != '') {
344 344
                 throw new AlreadyProcessedException();
345 345
             } else {
346 346
                 throw new WrongStatusException($this->pagantisOrder->getStatus());
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      */
354 354
     private function checkMerchantOrderStatus()
355 355
     {
356
-        if ($this->quote->getIsActive()=='0') {
356
+        if ($this->quote->getIsActive() == '0') {
357 357
             $this->getMagentoOrderId();
358 358
             throw new AlreadyProcessedException();
359 359
         }
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
             $tableName    = $this->dbObject->getTableName(self::CONCURRENCY_TABLE);
486 486
             if ($mode == false) {
487 487
                 $dbConnection->delete($tableName, "timestamp<".(time() - 5));
488
-            } elseif ($this->quoteId!='') {
488
+            } elseif ($this->quoteId != '') {
489 489
                 $dbConnection->delete($tableName, "id=".$this->quoteId);
490 490
             }
491 491
         } catch (Exception $exception) {
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
                 $this->getPagantisOrderId();
525 525
                 $this->getMagentoOrderId();
526 526
 
527
-                $logMessage  = sprintf(
527
+                $logMessage = sprintf(
528 528
                     "User waiting %s seconds, default seconds %s, bd time to expire %s seconds[quoteId=%s][origin=%s]",
529 529
                     $expirationSec,
530 530
                     self::CONCURRENCY_TIMEOUT,
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
                 $this->getPagantisOrderId();
577 577
             }
578 578
 
579
-            $pagantisOrderId   = $this->pagantisOrderId;
579
+            $pagantisOrderId = $this->pagantisOrderId;
580 580
             $query = sprintf(
581 581
                 "select mg_order_id from %s where id='%s' and order_id='%s' and token='%s'",
582 582
                 $tableName,
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
                 $pagantisOrderId,
585 585
                 $this->token
586 586
             );
587
-            $queryResult  = $dbConnection->fetchRow($query);
587
+            $queryResult = $dbConnection->fetchRow($query);
588 588
             $this->magentoOrderId = $queryResult['mg_order_id'];
589 589
         } catch (\Exception $e) {
590 590
             throw new UnknownException($e->getMessage());
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
             $metadataInfo = null;
608 608
             foreach ($metadataOrder as $metadataKey => $metadataValue) {
609 609
                 if ($metadataKey == 'promotedProduct') {
610
-                    $metadataInfo.= "/Producto promocionado = $metadataValue";
610
+                    $metadataInfo .= "/Producto promocionado = $metadataValue";
611 611
                 }
612 612
             }
613 613
 
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
             /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
647 647
             $dbConnection = $this->dbObject->getConnection();
648 648
             $tableName    = $this->dbObject->getTableName(self::ORDERS_TABLE);
649
-            $pagantisOrderId   = $this->pagantisOrder->getId();
649
+            $pagantisOrderId = $this->pagantisOrder->getId();
650 650
             $dbConnection->update(
651 651
                 $tableName,
652 652
                 array('mg_order_id' => $this->magentoOrderId),
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
             $this->getMagentoOrderId();
722 722
         }
723 723
 
724
-        if ($this->magentoOrderId!='') {
724
+        if ($this->magentoOrderId != '') {
725 725
             /** @var Order $this->magentoOrder */
726 726
             $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId);
727 727
             if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) {
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
             $orderStatus    = strtolower($this->magentoOrder->getStatus());
747 747
             $acceptedStatus = array('processing', 'completed');
748 748
             if (in_array($orderStatus, $acceptedStatus)) {
749
-                if (isset($this->extraConfig['PAGANTIS_OK_URL']) &&  $this->extraConfig['PAGANTIS_OK_URL']!= '') {
749
+                if (isset($this->extraConfig['PAGANTIS_OK_URL']) && $this->extraConfig['PAGANTIS_OK_URL'] != '') {
750 750
                     $returnUrl = $this->extraConfig['PAGANTIS_OK_URL'];
751 751
                 } else {
752 752
                     $returnUrl = 'checkout/onepage/success';
Please login to merge, or discard this patch.
Setup/UpgradeData.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 );
66 66
                 foreach ($newConfigs as $config => $value) {
67 67
                     $setup->getConnection()
68
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
68
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
69 69
                 }
70 70
             }
71 71
 
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
                 );
77 77
                 foreach ($newConfigs as $config => $value) {
78 78
                     $setup->getConnection()
79
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
79
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
80 80
                 }
81 81
                 $setup->getConnection()
82
-                      ->update(
83
-                          $prefixedTableName,
84
-                          array('value' => 'sdk.simulator.types.PRODUCT_PAGE'),
85
-                          "config='PAGANTIS_SIMULATOR_DISPLAY_TYPE'"
86
-                      );
82
+                        ->update(
83
+                            $prefixedTableName,
84
+                            array('value' => 'sdk.simulator.types.PRODUCT_PAGE'),
85
+                            "config='PAGANTIS_SIMULATOR_DISPLAY_TYPE'"
86
+                        );
87 87
 
88 88
             }
89 89
 
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
                 );
98 98
                 foreach ($newConfigs as $config => $value) {
99 99
                     $setup->getConnection()
100
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
100
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
101 101
                 }
102 102
                 $setup->getConnection()
103
-                      ->update(
104
-                          $prefixedTableName,
105
-                          array('value' => 'Instant financing'),
106
-                          "config='PAGANTIS_TITLE'"
107
-                      );
103
+                        ->update(
104
+                            $prefixedTableName,
105
+                            array('value' => 'Instant financing'),
106
+                            "config='PAGANTIS_TITLE'"
107
+                        );
108 108
             }
109 109
 
110 110
             if (version_compare($context->getVersion(), '8.6.1') < 0) {
Please login to merge, or discard this patch.