Completed
Push — master ( 8d0b83...9b7be6 )
by pablo
19s queued 12s
created
Controller/Payment/Log.php 1 patch
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.
Controller/Payment/LogV2.php 1 patch
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.
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.
Controller/Payment/Config.php 1 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/ConfigV2.php 1 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/Index.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -234,9 +234,9 @@
 block discarded – undo
234 234
                 if ($promotedProduct == 'true') {
235 235
                     $promotedAmount+=$product->getAmount()*$item->getQty();
236 236
                     $promotedMessage = 'Promoted Item: ' . $item->getName() .
237
-                                       ' Price: ' . $item->getPrice() .
238
-                                       ' Qty: ' . $item->getQty() .
239
-                                       ' Item ID: ' . $item->getItemId();
237
+                                        ' Price: ' . $item->getPrice() .
238
+                                        ' Qty: ' . $item->getQty() .
239
+                                        ' Item ID: ' . $item->getItemId();
240 240
                     $metadataOrder->addMetadata('promotedProduct', $promotedMessage);
241 241
                 }
242 242
             }
Please login to merge, or discard this patch.
Controller/Notify/Index.php 1 patch
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.
Controller/Notify/IndexV2.php 1 patch
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.
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.