Completed
Branch fjbender-papercuts-patch (f47bac)
by Florian
02:40
created
Helper/HostedIframe.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,15 +156,15 @@
 block discarded – undo
156 156
      */
157 157
     public function getHostedFieldConfig()
158 158
     {
159
-        $aHostedParams = $this->getHostedParams();// get hosted params from config
159
+        $aHostedParams = $this->getHostedParams(); // get hosted params from config
160 160
 
161 161
         $aFieldConfig = [];
162 162
         if (!empty($aHostedParams)) {
163
-            $aFieldConfig['fields'] = $this->getFieldConfig();// generate config for all field types
163
+            $aFieldConfig['fields'] = $this->getFieldConfig(); // generate config for all field types
164 164
             $aFieldConfig['defaultStyle'] = $this->getDefaultStyles($aHostedParams);
165 165
             if ($aHostedParams['Errors_active'] == "true") {
166
-                $aFieldConfig['error'] = 'errorOutput';// area to display error-messages (optional)
167
-                $aFieldConfig['language'] = $aHostedParams['Errors_lang'];// has to be defined in javascript
166
+                $aFieldConfig['error'] = 'errorOutput'; // area to display error-messages (optional)
167
+                $aFieldConfig['language'] = $aHostedParams['Errors_lang']; // has to be defined in javascript
168 168
             }
169 169
         }
170 170
         return $aFieldConfig;
Please login to merge, or discard this patch.
Helper/ConfigExport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,6 +177,6 @@
 block discarded – undo
177 177
         if ($this->getPaymentConfig('allowspecific', $sPaymentCode, $sStoreCode, true) == '1') {
178 178
             return $this->getPaymentConfig('specificcountry', $sPaymentCode, $sStoreCode, true);
179 179
         }
180
-        return '';// empty return value if all countries are available
180
+        return ''; // empty return value if all countries are available
181 181
     }
182 182
 }
Please login to merge, or discard this patch.
Helper/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,8 +129,8 @@
 block discarded – undo
129 129
         }
130 130
 
131 131
         if (!empty($aRates)) {// more than one shipping method existing?
132
-            ksort($aRates);// sort by price ascending
133
-            return array_shift($aRates);// return the cheapest shipping-method
132
+            ksort($aRates); // sort by price ascending
133
+            return array_shift($aRates); // return the cheapest shipping-method
134 134
         }
135 135
         return false;
136 136
     }
Please login to merge, or discard this patch.
Helper/Toolkit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         if (!empty($sText)) {
136 136
             $sText = str_replace(array_keys($aSubstitutionArray), array_values($aSubstitutionArray), $sText);
137 137
             if ($iMaxLength !== false && strlen($sText) > $iMaxLength) {
138
-                $sText = substr($sText, 0, $iMaxLength);// shorten text if too long
138
+                $sText = substr($sText, 0, $iMaxLength); // shorten text if too long
139 139
             }
140 140
             return $sText;
141 141
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function getInvoiceAppendix(SalesOrder $oOrder)
152 152
     {
153
-        $sText = $this->getConfigParam('invoice_appendix', 'invoicing');// get invoice appendix from config
153
+        $sText = $this->getConfigParam('invoice_appendix', 'invoicing'); // get invoice appendix from config
154 154
         $aSubstitutionArray = [
155 155
             '{{order_increment_id}}' => $oOrder->getIncrementId(),
156 156
             '{{customer_id}}' => $oOrder->getCustomerId(),
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function getNarrativeText(SalesOrder $oOrder, PayoneMethod $oPayment)
170 170
     {
171
-        $sText = $this->getConfigParam($oPayment->getCode(), 'text');// get narrative text for payment from config
171
+        $sText = $this->getConfigParam($oPayment->getCode(), 'text'); // get narrative text for payment from config
172 172
         $aSubstitutionArray = [
173 173
             '{{order_increment_id}}' => $oOrder->getIncrementId(),
174 174
         ];
Please login to merge, or discard this patch.
Helper/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,6 +188,6 @@
 block discarded – undo
188 188
         if ($iCount === null) {
189 189
             return 0;
190 190
         }
191
-        return $iCount+1;
191
+        return $iCount + 1;
192 192
     }
193 193
 }
Please login to merge, or discard this patch.
Setup/Tables/Transactionstatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
             'cardpan' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []],
135 135
             'clearing_bankaccountholder' => ['type' => Table::TYPE_TEXT, 'length' => 255, 'option' => []],
136 136
             'clearing_bankaccount' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []],
137
-            'clearing_bankcode' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => [],],
137
+            'clearing_bankcode' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => [], ],
138 138
             'clearing_bankname' => ['type' => Table::TYPE_TEXT, 'length' => 255, 'option' => []],
139 139
             'clearing_bankbic' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []],
140 140
             'clearing_bankiban' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []],
Please login to merge, or discard this patch.
Model/Entities/TransactionStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $sRequest = $this->getData($sKey);
76 76
         if ($sRequest) {
77 77
             if (Toolkit::isUTF8($sRequest)) {
78
-                $sRequest = utf8_decode($sRequest);// needed for unserializing the array
78
+                $sRequest = utf8_decode($sRequest); // needed for unserializing the array
79 79
             }
80 80
             $aRequest = unserialize($sRequest);
81 81
             if (is_array($aRequest)) {
Please login to merge, or discard this patch.
Model/ResourceModel/TransactionStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         $aRequest = $oContext->getRequest()->getPostValue();
109 109
         $sRawStatus = serialize($aRequest);
110 110
         if (!Toolkit::isUTF8($sRawStatus)) {
111
-            $sRawStatus = utf8_encode($sRawStatus);// needed for serializing the array
111
+            $sRawStatus = utf8_encode($sRawStatus); // needed for serializing the array
112 112
         }
113 113
         $sOrderId = $oOrder !== null ? $oOrder->getIncrementId() : '';
114 114
         $this->getConnection()->insert(
Please login to merge, or discard this patch.
Model/PayoneConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
     const TRANSACTIONSTATUS_REMINDER = 'reminder';
59 59
     const TRANSACTIONSTATUS_VAUTHORIZATION = 'vauthorization';
60 60
     const TRANSACTIONSTATUS_VSETTLEMENT = 'vsettlement';
61
-    const TRANSACTIONSTATUS_TRANSFER= 'transfer';
62
-    const TRANSACTIONSTATUS_INVOICE= 'invoice';
61
+    const TRANSACTIONSTATUS_TRANSFER = 'transfer';
62
+    const TRANSACTIONSTATUS_INVOICE = 'invoice';
63 63
 
64 64
     /* Payment method codes */
65 65
     const METHOD_CREDITCARD = 'payone_creditcard';
Please login to merge, or discard this patch.