Passed
Pull Request — master (#217)
by Patrik
03:30
created
includes/class-wpinv-cardinal-commerce.php 1 patch
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -467,23 +467,23 @@
 block discarded – undo
467 467
         $this->order_add($invoice, "ActionCode", $data->ActionCode);
468 468
 
469 469
         switch ($data->ActionCode) {
470
-        case 'SUCCESS':
471
-        case 'NOACTION':
472
-            break;
473
-        case 'FAILURE':
474
-            $this->reject_with_error('Payment was unsuccessful. ' .
475
-                'Please try again or provide another form of payment.');
476
-            break;
477
-        case 'ERROR':
478
-            $message = $data->ErrorDescription;
479
-            if ( isset($data->ErrorNumber) ) {
480
-                $message .= " ({$data->ErrorNumber})";
481
-            }
482
-            $this->reject_with_error($message, isset($data->PermanentFatal));
483
-            break;
484
-        default:
485
-            $this->reject_with_error('Unknown ActionCode');
486
-            break;
470
+            case 'SUCCESS':
471
+            case 'NOACTION':
472
+                break;
473
+            case 'FAILURE':
474
+                $this->reject_with_error('Payment was unsuccessful. ' .
475
+                    'Please try again or provide another form of payment.');
476
+                break;
477
+            case 'ERROR':
478
+                $message = $data->ErrorDescription;
479
+                if ( isset($data->ErrorNumber) ) {
480
+                    $message .= " ({$data->ErrorNumber})";
481
+                }
482
+                $this->reject_with_error($message, isset($data->PermanentFatal));
483
+                break;
484
+            default:
485
+                $this->reject_with_error('Unknown ActionCode');
486
+                break;
487 487
         }
488 488
 
489 489
         if (!isset($cruise_result->jwt)) {
Please login to merge, or discard this patch.