Passed
Pull Request — master (#16)
by
unknown
03:28
created
Test/Buy/PaylaterMgBuyRegisteredTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->assertNotEmpty($orderUrl);
64 64
 
65 65
         $orderArray = explode('/', $orderUrl);
66
-        $magentoOrderId = (int)$orderArray['8'];
66
+        $magentoOrderId = (int) $orderArray['8'];
67 67
         $this->assertNotEmpty($magentoOrderId);
68 68
         $notifyFile = 'index/';
69 69
         if (version_compare($this->version, '23') >= 0) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             '='
81 81
         );
82 82
 
83
-        $quoteId=$magentoOrderId;
83
+        $quoteId = $magentoOrderId;
84 84
         $response = Request::post($notifyUrl.$quoteId)->expects('json')->send();
85 85
         $this->assertNotEmpty($response->body->result, print_r($response, true));
86 86
         $this->assertContains(
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             "PR58=>".$notifyUrl.$quoteId." = ".$response->body->result
98 98
         );
99 99
 
100
-        $quoteId=0;
100
+        $quoteId = 0;
101 101
         $response = Request::post($notifyUrl.$quoteId)->expects('json')->send();
102 102
         $this->assertNotEmpty($response->body->result, print_r($response, true));
103 103
         $this->assertContains(
Please login to merge, or discard this patch.
Controller/Payment/ConfigV2.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@
 block discarded – undo
18 18
      * @var array $defaultConfigs
19 19
      */
20 20
     public $defaultConfigs = array('PMT_TITLE'=>'Instant Financing',
21
-                                   'PMT_SIMULATOR_DISPLAY_TYPE'=>'pmtSDK.simulator.types.SIMPLE',
22
-                                   'PMT_SIMULATOR_DISPLAY_SKIN'=>'pmtSDK.simulator.skins.BLUE',
23
-                                   'PMT_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
24
-                                   'PMT_SIMULATOR_START_INSTALLMENTS'=>3,
25
-                                   'PMT_SIMULATOR_MAX_INSTALLMENTS'=>12,
26
-                                   'PMT_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
27
-                                   'PMT_SIMULATOR_DISPLAY_CSS_POSITION'=>'pmtSDK.simulator.positions.INNER',
28
-                                   'PMT_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
29
-                                   'PMT_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
30
-                                   'PMT_FORM_DISPLAY_TYPE'=>0,
31
-                                   'PMT_DISPLAY_MIN_AMOUNT'=>1,
32
-                                   'PMT_URL_OK'=>'',
33
-                                   'PMT_URL_KO'=>'',
34
-                                   'PMT_TITLE_EXTRA' => 'Paga hasta en 12 cómodas cuotas con Paga+Tarde. Solicitud totalmente 
21
+                                    'PMT_SIMULATOR_DISPLAY_TYPE'=>'pmtSDK.simulator.types.SIMPLE',
22
+                                    'PMT_SIMULATOR_DISPLAY_SKIN'=>'pmtSDK.simulator.skins.BLUE',
23
+                                    'PMT_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
24
+                                    'PMT_SIMULATOR_START_INSTALLMENTS'=>3,
25
+                                    'PMT_SIMULATOR_MAX_INSTALLMENTS'=>12,
26
+                                    'PMT_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
27
+                                    'PMT_SIMULATOR_DISPLAY_CSS_POSITION'=>'pmtSDK.simulator.positions.INNER',
28
+                                    'PMT_SIMULATOR_CSS_PRICE_SELECTOR'=>'default',
29
+                                    'PMT_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default',
30
+                                    'PMT_FORM_DISPLAY_TYPE'=>0,
31
+                                    'PMT_DISPLAY_MIN_AMOUNT'=>1,
32
+                                    'PMT_URL_OK'=>'',
33
+                                    'PMT_URL_KO'=>'',
34
+                                    'PMT_TITLE_EXTRA' => 'Paga hasta en 12 cómodas cuotas con Paga+Tarde. Solicitud totalmente 
35 35
                             online y sin papeleos,¡y la respuesta es inmediata!'
36 36
     );
37 37
 
Please login to merge, or discard this patch.
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.