Passed
Push — master ( b0214a...1d1e79 )
by
unknown
52s queued 14s
created
Model/Plugins/MethodList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote)
206 206
     {
207 207
         $aBannedMethos = $this->getBannedPaymentMethods($oQuote);
208
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
208
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
209 209
             $sCode = $aPaymentMethods[$i]->getCode();
210 210
             if (array_key_exists($sCode, $aBannedMethos) !== false) {
211 211
                 $iBannedUntil = strtotime($aBannedMethos[$sCode]);
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $aWhitelist = $this->checkoutSession->getPayonePaymentWhitelist();
229 229
         if (!empty($aWhitelist)) {
230 230
             $iCount = count($aPaymentMethods);
231
-            for($i = 0; $i < $iCount; $i++) {
231
+            for ($i = 0; $i < $iCount; $i++) {
232 232
                 if (array_search($aPaymentMethods[$i]->getCode(), $aWhitelist) === false) {
233 233
                     unset($aPaymentMethods[$i]);
234 234
                 }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function removeAmazonPay($aPaymentMethods)
247 247
     {
248
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
248
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
249 249
             if (isset($aPaymentMethods[$i]) && $aPaymentMethods[$i]->getCode() == PayoneConfig::METHOD_AMAZONPAY) {
250 250
                 unset($aPaymentMethods[$i]);
251 251
             }
Please login to merge, or discard this patch.