Completed
Push — master ( fb59b4...13e6f0 )
by pablo
14s 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/Notify/Index.php 1 patch
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.
Controller/Notify/IndexV2.php 1 patch
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.
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.
Setup/InstallData.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -16,27 +16,27 @@
 block discarded – undo
16 16
      * @var array $defaultConfigs
17 17
      */
18 18
     public $defaultConfigs = array(
19
-       'PAGANTIS_TITLE'=>'Pago en cuotas',
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' => ','
19
+        'PAGANTIS_TITLE'=>'Pago en cuotas',
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 40
     );
41 41
 
42 42
     /**
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.