Passed
Pull Request — master (#57)
by pablo
04:23
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/IndexV2.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -607,19 +607,19 @@
 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 = 'pagantisOrderId: ' . $this->pagantisOrder->getId(). ' ' .
615
-                       'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' .
616
-                       'via: '.$this->origin. ' ' .
617
-                       'product: '.$this->getProduct();
615
+                        'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' .
616
+                        'via: '.$this->origin. ' ' .
617
+                        'product: '.$this->getProduct();
618 618
 
619 619
             $this->magentoOrder->addStatusHistoryComment($comment)
620
-                               ->setIsCustomerNotified(false)
621
-                               ->setEntityName('order')
622
-                               ->save();
620
+                                ->setIsCustomerNotified(false)
621
+                                ->setEntityName('order')
622
+                                ->save();
623 623
 
624 624
             if ($this->magentoOrderId == '') {
625 625
                 throw new UnknownException('Order can not be saved');
Please login to merge, or discard this patch.
Controller/Notify/Index.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -589,20 +589,20 @@
 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 = 'pagantisOrderId: '.$this->pagantisOrder->getId(). ' ' .
599
-                       'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' .
600
-                       'via: '.$this->origin. ' ' .
601
-                       'product: '.$this->getProduct();
599
+                        'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' .
600
+                        'via: '.$this->origin. ' ' .
601
+                        'product: '.$this->getProduct();
602 602
             $this->magentoOrder->addStatusHistoryComment($comment)
603
-                               ->setIsCustomerNotified(false)
604
-                               ->setEntityName('order')
605
-                               ->save();
603
+                                ->setIsCustomerNotified(false)
604
+                                ->setEntityName('order')
605
+                                ->save();
606 606
 
607 607
             if ($this->magentoOrderId == '') {
608 608
                 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
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 );
62 62
                 foreach ($newConfigs as $config => $value) {
63 63
                     $setup->getConnection()
64
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
64
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
65 65
                 }
66 66
             }
67 67
 
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
                 );
73 73
                 foreach ($newConfigs as $config => $value) {
74 74
                     $setup->getConnection()
75
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
75
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
76 76
                 }
77 77
                 $setup->getConnection()
78
-                      ->update(
79
-                          $prefixedTableName,
80
-                          array('value' => 'sdk.simulator.types.PRODUCT_PAGE'),
81
-                          "config='PAGANTIS_SIMULATOR_DISPLAY_TYPE'"
82
-                      );
78
+                        ->update(
79
+                            $prefixedTableName,
80
+                            array('value' => 'sdk.simulator.types.PRODUCT_PAGE'),
81
+                            "config='PAGANTIS_SIMULATOR_DISPLAY_TYPE'"
82
+                        );
83 83
 
84 84
             }
85 85
 
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
                 );
94 94
                 foreach ($newConfigs as $config => $value) {
95 95
                     $setup->getConnection()
96
-                          ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
96
+                            ->insert($prefixedTableName, array('config' => $config, 'value' => $value));
97 97
                 }
98 98
                 $setup->getConnection()
99
-                      ->update(
100
-                          $prefixedTableName,
101
-                          array('value' => 'Instant financing'),
102
-                          "config='PAGANTIS_TITLE'"
103
-                      );
99
+                        ->update(
100
+                            $prefixedTableName,
101
+                            array('value' => 'Instant financing'),
102
+                            "config='PAGANTIS_TITLE'"
103
+                        );
104 104
             }
105 105
         }
106 106
         $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
Please login to merge, or discard this patch.