Completed
Push — master ( fb59b4...13e6f0 )
by pablo
14s queued 12s
created
Controller/Payment/Log.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
                     Table::TYPE_TIMESTAMP,
112 112
                     null,
113 113
                     array('nullable'=>false,
114
-                          'default'=>Table::TIMESTAMP_INIT)
114
+                            'default'=>Table::TIMESTAMP_INIT)
115 115
                 );
116 116
             return $dbConnection->createTable($table);
117 117
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             $secretKey = $this->getRequest()->getParam('secret');
45 45
             $privateKey = isset($this->config['pagantis_private_key']) ? $this->config['pagantis_private_key'] : null;
46 46
 
47
-            if ($secretKey!='' && $privateKey!='') {
47
+            if ($secretKey != '' && $privateKey != '') {
48 48
                 $this->checkDbLogTable();
49 49
                 /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
50 50
                 $dbConnection = $this->dbObject->getConnection();
Please login to merge, or discard this patch.
Controller/Payment/Config.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             } elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {
73 73
                 if (count($_POST)) {
74 74
                     foreach ($_POST as $config => $value) {
75
-                        if (isset($this->defaultConfigs[$config]) && $response['status']==null) {
75
+                        if (isset($this->defaultConfigs[$config]) && $response['status'] == null) {
76 76
                             $dbConnection->update(
77 77
                                 $tableName,
78 78
                                 array('value' => $value),
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             }
91 91
 
92 92
             $formattedResult = array();
93
-            if ($response['status']==null) {
93
+            if ($response['status'] == null) {
94 94
                 $dbResult = $dbConnection->fetchAll("select * from $tableName");
95 95
                 foreach ($dbResult as $value) {
96 96
                     $formattedResult[$value['config']] = $value['value'];
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -24,21 +24,21 @@
 block discarded – undo
24 24
      * @var array $defaultConfigs
25 25
      */
26 26
     public $defaultConfigs = array('PAGANTIS_TITLE'=>'Paga en cuotas',
27
-                                   'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE',
28
-                                   'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE',
29
-                                   'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
30
-                                   'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
31
-                                   'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
32
-                                   'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
33
-                                   'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER',
34
-                                   'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
35
-                                   'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
36
-                                   'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
37
-                                   'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
38
-                                   'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
39
-                                   'PAGANTIS_URL_OK'=>'',
40
-                                   'PAGANTIS_URL_KO'=>'',
41
-                                   'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!'
27
+                                    'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE',
28
+                                    'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE',
29
+                                    'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
30
+                                    'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
31
+                                    'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
32
+                                    'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
33
+                                    'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER',
34
+                                    'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
35
+                                    'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
36
+                                    'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
37
+                                    'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
38
+                                    'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
39
+                                    'PAGANTIS_URL_OK'=>'',
40
+                                    'PAGANTIS_URL_KO'=>'',
41
+                                    'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!'
42 42
     );
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
Controller/Payment/LogV2.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
                     Table::TYPE_TIMESTAMP,
112 112
                     null,
113 113
                     array('nullable'=>false,
114
-                          'default'=>Table::TIMESTAMP_INIT)
114
+                            'default'=>Table::TIMESTAMP_INIT)
115 115
                 );
116 116
             return $dbConnection->createTable($table);
117 117
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             $secretKey = $this->getRequest()->getParam('secret');
45 45
             $privateKey = isset($this->config['pagantis_private_key']) ? $this->config['pagantis_private_key'] : null;
46 46
 
47
-            if ($secretKey!='' && $privateKey!='') {
47
+            if ($secretKey != '' && $privateKey != '') {
48 48
                 $this->checkDbLogTable();
49 49
                 /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
50 50
                 $dbConnection = $this->dbObject->getConnection();
Please login to merge, or discard this patch.
Setup/InstallSchema.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -24,22 +24,22 @@  discard block
 block discarded – undo
24 24
         $installer->startSetup();
25 25
 
26 26
         $table = $installer->getConnection()
27
-                           ->newTable($installer->getTable(self::CONFIG_TABLE))
28
-                           ->addColumn(
29
-                               'id',
30
-                               \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
31
-                               null,
32
-                               ['identity' => true, 'unsigned' => true, 'nullable' =>
33
-                                   false, 'primary' => true],
34
-                               'Entity ID'
35
-                           )
36
-                           ->addColumn(
37
-                               'config',
38
-                               \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
39
-                               60,
40
-                               ['nullable' => false],
41
-                               'Config'
42
-                           )
27
+                            ->newTable($installer->getTable(self::CONFIG_TABLE))
28
+                            ->addColumn(
29
+                                'id',
30
+                                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
31
+                                null,
32
+                                ['identity' => true, 'unsigned' => true, 'nullable' =>
33
+                                    false, 'primary' => true],
34
+                                'Entity ID'
35
+                            )
36
+                            ->addColumn(
37
+                                'config',
38
+                                \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
39
+                                60,
40
+                                ['nullable' => false],
41
+                                'Config'
42
+                            )
43 43
                         ->addColumn(
44 44
                             'value',
45 45
                             \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                             ['nullable' => false],
48 48
                             'Value'
49 49
                         )
50
-                           ->setComment('Pagantis config table');
50
+                            ->setComment('Pagantis config table');
51 51
 
52 52
         $installer->getConnection()->createTable($table);
53 53
 
Please login to merge, or discard this patch.
Model/Adminhtml/Source/ConfigButtonLinkType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
     {
27 27
         $originalData = $element->getOriginalData();
28 28
         $label = __($originalData['button_label']);
29
-        $url =   $this->escapeHtml($originalData['button_url']);
29
+        $url = $this->escapeHtml($originalData['button_url']);
30 30
         $labelCredentials = __($originalData['button_credentials_label']);
31
-        $urlCredentials =   $this->escapeHtml($originalData['button_credentials_url']);
31
+        $urlCredentials = $this->escapeHtml($originalData['button_credentials_url']);
32 32
         return <<<EOD
33 33
 <div class="pp-buttons-container">
34 34
     <button onclick="javascript:window.open('$url')" class="scalable" type="button" id="bo_pagantis">
Please login to merge, or discard this patch.
Model/Ui/ConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         foreach ($items as $key => $item) {
108 108
             $promotedProduct = $this->isPromoted($item);
109 109
             if ($promotedProduct == 'true') {
110
-                $promotedAmount+=$item->getPrice()*$item->getQty();
110
+                $promotedAmount += $item->getPrice() * $item->getQty();
111 111
             }
112 112
         }
113 113
 
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
@@ -531,17 +531,17 @@
 block discarded – undo
531 531
             }
532 532
 
533 533
             $this->magentoOrder->addStatusHistoryComment($metadataInfo)
534
-                               ->setIsCustomerNotified(false)
535
-                               ->setEntityName('order')
536
-                               ->save();
534
+                                ->setIsCustomerNotified(false)
535
+                                ->setEntityName('order')
536
+                                ->save();
537 537
 
538 538
             $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId(). ' ' .
539
-                       'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' .
540
-                       'via: '.$this->origin;
539
+                        'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' .
540
+                        'via: '.$this->origin;
541 541
             $this->magentoOrder->addStatusHistoryComment($comment)
542
-                               ->setIsCustomerNotified(false)
543
-                               ->setEntityName('order')
544
-                               ->save();
542
+                                ->setIsCustomerNotified(false)
543
+                                ->setEntityName('order')
544
+                                ->save();
545 545
 
546 546
             if ($this->magentoOrderId == '') {
547 547
                 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
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             $this->checkPagantisStatus(array('AUTHORIZED'));
278 278
         } catch (\Exception $e) {
279 279
             $this->getMagentoOrderId();
280
-            if ($this->magentoOrderId!='') {
280
+            if ($this->magentoOrderId != '') {
281 281
                 throw new AlreadyProcessedException();
282 282
             } else {
283 283
                 throw new WrongStatusException($this->pagantisOrder->getStatus());
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     private function checkMerchantOrderStatus()
292 292
     {
293
-        if ($this->quote->getIsActive()=='0') {
293
+        if ($this->quote->getIsActive() == '0') {
294 294
             $this->getMagentoOrderId();
295 295
             throw new AlreadyProcessedException();
296 296
         }
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
             $tableName    = $this->dbObject->getTableName(self::CONCURRENCY_TABLE);
423 423
             if ($mode == false) {
424 424
                 $dbConnection->delete($tableName, "timestamp<".(time() - 5));
425
-            } elseif ($this->quoteId!='') {
425
+            } elseif ($this->quoteId != '') {
426 426
                 $dbConnection->delete($tableName, "id=".$this->quoteId);
427 427
             }
428 428
         } catch (Exception $exception) {
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
                     sleep($expirationSec + 1);
459 459
                 }
460 460
 
461
-                $logMessage  = sprintf(
461
+                $logMessage = sprintf(
462 462
                     "User waiting %s seconds, default seconds %s, bd time to expire %s seconds",
463 463
                     $expirationSec,
464 464
                     self::CONCURRENCY_TIMEOUT,
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
             if ($this->pagantisOrderId == '') {
508 508
                 $this->getPagantisOrderId();
509 509
             }
510
-            $pagantisOrderId   = $this->pagantisOrderId;
510
+            $pagantisOrderId = $this->pagantisOrderId;
511 511
 
512 512
             $query        = "select mg_order_id from $tableName where id='$this->quoteId' and order_id='$pagantisOrderId'";
513 513
             $queryResult  = $dbConnection->fetchRow($query);
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
             $metadataInfo = null;
535 535
             foreach ($metadataOrder as $metadataKey => $metadataValue) {
536 536
                 if ($metadataKey == 'promotedProduct') {
537
-                    $metadataInfo.= " Producto promocionado = $metadataValue //";
537
+                    $metadataInfo .= " Producto promocionado = $metadataValue //";
538 538
                 }
539 539
             }
540 540
 
@@ -543,8 +543,8 @@  discard block
 block discarded – undo
543 543
                                ->setEntityName('order')
544 544
                                ->save();
545 545
 
546
-            $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId(). ' ' .
547
-                       'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' .
546
+            $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId().' '.
547
+                       'pagantisOrderStatus: '.$this->pagantisOrder->getStatus().' '.
548 548
                        'via: '.$this->origin;
549 549
             $this->magentoOrder->addStatusHistoryComment($comment)
550 550
                                ->setIsCustomerNotified(false)
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
             /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
569 569
             $dbConnection = $this->dbObject->getConnection();
570 570
             $tableName    = $this->dbObject->getTableName(self::ORDERS_TABLE);
571
-            $pagantisOrderId   = $this->pagantisOrder->getId();
571
+            $pagantisOrderId = $this->pagantisOrder->getId();
572 572
             $dbConnection->update(
573 573
                 $tableName,
574 574
                 array('mg_order_id' => $this->magentoOrderId),
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
             $this->getPagantisOrderId();
623 623
         }
624 624
 
625
-        if ($this->magentoOrderId!='') {
625
+        if ($this->magentoOrderId != '') {
626 626
             /** @var Order $this->magentoOrder */
627 627
             $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId);
628 628
             if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) {
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
             $orderStatus    = strtolower($this->magentoOrder->getStatus());
640 640
             $acceptedStatus = array('processing', 'completed');
641 641
             if (in_array($orderStatus, $acceptedStatus)) {
642
-                if (isset($this->extraConfig['PAGANTIS_OK_URL']) &&  $this->extraConfig['PAGANTIS_OK_URL']!= '') {
642
+                if (isset($this->extraConfig['PAGANTIS_OK_URL']) && $this->extraConfig['PAGANTIS_OK_URL'] != '') {
643 643
                     $returnUrl = $this->extraConfig['PAGANTIS_OK_URL'];
644 644
                 } else {
645 645
                     $returnUrl = 'checkout/onepage/success';
Please login to merge, or discard this patch.
Controller/Notify/IndexV2.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -537,17 +537,17 @@
 block discarded – undo
537 537
             }
538 538
 
539 539
             $this->magentoOrder->addStatusHistoryComment($metadataInfo)
540
-                               ->setIsCustomerNotified(false)
541
-                               ->setEntityName('order')
542
-                               ->save();
540
+                                ->setIsCustomerNotified(false)
541
+                                ->setEntityName('order')
542
+                                ->save();
543 543
 
544 544
             $comment = 'pagantisOrderId: ' . $this->pagantisOrder->getId(). ' ' .
545
-                       'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' .
546
-                       'via: '. $this->origin;
545
+                        'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' .
546
+                        'via: '. $this->origin;
547 547
             $this->magentoOrder->addStatusHistoryComment($comment)
548
-                               ->setIsCustomerNotified(false)
549
-                               ->setEntityName('order')
550
-                               ->save();
548
+                                ->setIsCustomerNotified(false)
549
+                                ->setEntityName('order')
550
+                                ->save();
551 551
 
552 552
             if ($this->magentoOrderId == '') {
553 553
                 throw new UnknownException('Order can not be saved');
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             $this->checkPagantisStatus(array('AUTHORIZED'));
292 292
         } catch (\Exception $e) {
293 293
             $this->getMagentoOrderId();
294
-            if ($this->magentoOrderId!='') {
294
+            if ($this->magentoOrderId != '') {
295 295
                 throw new AlreadyProcessedException();
296 296
             } else {
297 297
                 throw new WrongStatusException($this->pagantisOrder->getStatus());
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     private function checkMerchantOrderStatus()
306 306
     {
307
-        if ($this->quote->getIsActive()=='0') {
307
+        if ($this->quote->getIsActive() == '0') {
308 308
             $this->getMagentoOrderId();
309 309
             throw new AlreadyProcessedException();
310 310
         }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             $tableName    = $this->dbObject->getTableName(self::CONCURRENCY_TABLE);
437 437
             if ($mode == false) {
438 438
                 $dbConnection->delete($tableName, "timestamp<".(time() - 5));
439
-            } elseif ($this->quoteId!='') {
439
+            } elseif ($this->quoteId != '') {
440 440
                 $dbConnection->delete($tableName, "id=".$this->quoteId);
441 441
             }
442 442
         } catch (Exception $exception) {
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
                     sleep($expirationSec + 1);
473 473
                 }
474 474
 
475
-                $logMessage  = sprintf(
475
+                $logMessage = sprintf(
476 476
                     "User waiting %s seconds, default seconds %s, bd time to expire %s seconds",
477 477
                     $expirationSec,
478 478
                     self::CONCURRENCY_TIMEOUT,
@@ -522,14 +522,14 @@  discard block
 block discarded – undo
522 522
                 $this->getPagantisOrderId();
523 523
             }
524 524
 
525
-            $pagantisOrderId   = $this->pagantisOrderId;
526
-            $query        = sprintf(
525
+            $pagantisOrderId = $this->pagantisOrderId;
526
+            $query = sprintf(
527 527
                 "select mg_order_id from %s where id='%s' and order_id='%s'",
528 528
                 $tableName,
529 529
                 $this->quoteId,
530 530
                 $pagantisOrderId
531 531
             );
532
-            $queryResult  = $dbConnection->fetchRow($query);
532
+            $queryResult = $dbConnection->fetchRow($query);
533 533
             $this->magentoOrderId = $queryResult['mg_order_id'];
534 534
         } catch (\Exception $e) {
535 535
             throw new UnknownException($e->getMessage());
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
             $metadataInfo = null;
553 553
             foreach ($metadataOrder as $metadataKey => $metadataValue) {
554 554
                 if ($metadataKey == 'promotedProduct') {
555
-                    $metadataInfo.= "/Producto promocionado = $metadataValue";
555
+                    $metadataInfo .= "/Producto promocionado = $metadataValue";
556 556
                 }
557 557
             }
558 558
 
@@ -561,9 +561,9 @@  discard block
 block discarded – undo
561 561
                                ->setEntityName('order')
562 562
                                ->save();
563 563
 
564
-            $comment = 'pagantisOrderId: ' . $this->pagantisOrder->getId(). ' ' .
565
-                       'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' .
566
-                       'via: '. $this->origin;
564
+            $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId().' '.
565
+                       'pagantisOrderStatus: '.$this->pagantisOrder->getStatus().' '.
566
+                       'via: '.$this->origin;
567 567
             $this->magentoOrder->addStatusHistoryComment($comment)
568 568
                                ->setIsCustomerNotified(false)
569 569
                                ->setEntityName('order')
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
             /** @var \Magento\Framework\DB\Adapter\AdapterInterface $dbConnection */
587 587
             $dbConnection = $this->dbObject->getConnection();
588 588
             $tableName    = $this->dbObject->getTableName(self::ORDERS_TABLE);
589
-            $pagantisOrderId   = $this->pagantisOrder->getId();
589
+            $pagantisOrderId = $this->pagantisOrder->getId();
590 590
             $dbConnection->update(
591 591
                 $tableName,
592 592
                 array('mg_order_id' => $this->magentoOrderId),
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
             $this->getPagantisOrderId();
641 641
         }
642 642
 
643
-        if ($this->magentoOrderId!='') {
643
+        if ($this->magentoOrderId != '') {
644 644
             /** @var Order $this->magentoOrder */
645 645
             $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId);
646 646
             if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
             $orderStatus    = strtolower($this->magentoOrder->getStatus());
658 658
             $acceptedStatus = array('processing', 'completed');
659 659
             if (in_array($orderStatus, $acceptedStatus)) {
660
-                if (isset($this->extraConfig['PAGANTIS_OK_URL']) &&  $this->extraConfig['PAGANTIS_OK_URL']!= '') {
660
+                if (isset($this->extraConfig['PAGANTIS_OK_URL']) && $this->extraConfig['PAGANTIS_OK_URL'] != '') {
661 661
                     $returnUrl = $this->extraConfig['PAGANTIS_OK_URL'];
662 662
                 } else {
663 663
                     $returnUrl = 'checkout/onepage/success';
Please login to merge, or discard this patch.
Gateway/Http/Client/ClientMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         $headers = $transfer->getHeaders();
97 97
 
98 98
         if (isset($headers['force_result'])) {
99
-            return (int)$headers['force_result'];
99
+            return (int) $headers['force_result'];
100 100
         }
101 101
 
102 102
         return $this->results[mt_rand(0, 1)];
Please login to merge, or discard this patch.